| plot.inla.CRS {INLA} | R Documentation |
Plot the outline of a CRS or inla.CRS projection, with optional graticules (transformed parallels and meridians) and Tissot indicatrices.
## S3 method for class 'inla.CRS'
plot(
x,
xlim = NULL,
ylim = NULL,
outline = TRUE,
graticule = c(15, 15, 45),
tissot = c(30, 30, 30),
asp = 1,
add = FALSE,
eps = 0.05,
...
)
## S3 method for class 'CRS'
plot(
x,
xlim = NULL,
ylim = NULL,
outline = TRUE,
graticule = c(15, 15, 45),
tissot = c(30, 30, 30),
asp = 1,
add = FALSE,
eps = 0.05,
...
)
x |
A |
xlim |
Optional x-axis limits. |
ylim |
Optional y-axis limits. |
outline |
Logical, if |
graticule |
Vector of length at most 3, to plot meridians with spacing
|
tissot |
Vector of length at most 3, to plot Tissot's indicatrices with
spacing |
asp |
The aspect ratio for the plot, default 1. |
add |
If |
eps |
Clipping tolerance for rudimentary boundary clipping |
... |
Additional arguments passed on to the internal calls to
|
Finn Lindgren finn.lindgren@gmail.com
if (require("sf") && require("sp")) {
for (projtype in c("longlat_norm", "lambert_norm", "mollweide_norm", "hammer_norm")) {
plot(inlabru::fm_CRS(projtype), main = projtype)
}
}
# Note: inlabru 2.8.0 has bugs preventing the use of
# oblique `inla.CRS` objects.
if (utils::packageVersion("inlabru") >= "2.8.0.9003") {
if (require("sf") && require("sp")) {
oblique <- c(0, 45, 45, 0)
for (projtype in c("longlat_norm", "lambert_norm", "mollweide_norm", "hammer_norm")) {
plot(inlabru::fm_CRS(projtype, oblique = oblique), main = paste("oblique", projtype))
}
}
}