fm_crs_plot {fmesher} | R Documentation |
Plot CRS and fm_crs objects
Description
Plot the outline of a
crs
or fm_crs()
projection, with optional graticules (transformed parallels
and meridians) and Tissot indicatrices.
Usage
fm_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,
...
)
fm_crs_graticule(
x,
by = c(15, 15, 45),
add = FALSE,
do.plot = TRUE,
eps = 0.05,
...
)
fm_crs_tissot(
x,
by = c(30, 30, 30),
add = FALSE,
do.plot = TRUE,
eps = 0.05,
diff.eps = 0.01,
...
)
Arguments
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
|
by |
The spacing between |
do.plot |
logical; If TRUE, do plotting |
diff.eps |
Pre-scaling |
Value
NULL
, invisibly
Functions
-
fm_crs_graticule()
:Constructs graticule information for a given
CRS
orfm_crs()
and optionally plots the graticules. Returns a list with two elements,meridians
andparallels
, which areSpatialLines
objects. -
fm_crs_tissot()
:Constructs Tissot indicatrix information for a given
CRS
orfm_crs()
and optionally plots the indicatrices. Returns a list with one element,tissot
, which is aSpatialLines
object.
Author(s)
Finn Lindgren Finn.Lindgren@gmail.com
See Also
Examples
if (require("sf") && require("sp")) {
for (projtype in c(
"longlat_norm",
"lambert_norm",
"mollweide_norm",
"hammer_norm"
)) {
fm_crs_plot(fm_crs(projtype), main = projtype)
}
}
if (require("sf") && require("sp")) {
oblique <- c(0, 45, 45, 0)
for (projtype in c(
"longlat_norm",
"lambert_norm",
"mollweide_norm",
"hammer_norm"
)) {
fm_crs_plot(
fm_crs(projtype, oblique = oblique),
main = paste("oblique", projtype)
)
}
}