plot_layer {arcpullr} | R Documentation |
Plot a spatial layer
Description
This function plots a spatial layer as returned from
get_spatial_layer
.
Usage
plot_layer(x, ...)
plot_layer.sf(
x,
outline_poly = NULL,
outline_size = 1.2,
outline_color = "gray30",
plot_pkg = "ggplot",
...
)
Arguments
x |
An sf or Raster* object as returned from a
|
... |
Additional arguments to |
outline_poly |
Optional. An sf polygon to outline |
outline_size |
Numeric argument that controls width of parameter |
outline_color |
A character vector of a valid color |
plot_pkg |
Character. The plotting environment to use. Either "ggplot" (default) or "base" |
Value
Either a ggplot
object, or simply plots x
if
plot_pkg = "base"
Examples
## Not run:
plot_layer(iceland_poly)
plot_layer(portage_county, outline_poly = wis_poly)
## End(Not run)
[Package arcpullr version 0.2.9 Index]