powered by
Plot a RasterLayer object
# S4 method for RasterLayer plot_layer( x, outline_poly = NULL, outline_size = 1.2, outline_color = "gray30", legend = TRUE, plot_pkg = "ggplot", ... )
An sf or Raster* object as returned from a get_*_layer function
get_*_layer
Optional. An sf polygon to outline sf_data for context
sf_data
Numeric argument that controls width of parameter
A character vector of a valid color
Logical. Only valid when plotting RasterLayers retrieved from get_map_layer where legend was also retrieved
get_map_layer
Character. The plotting environment to use. Either "ggplot" (default) or "base"
Additional arguments to plot_layer
plot_layer
if (FALSE) { wi_landcover <- get_map_layer(wi_landcover_url, wis_poly) plot_layer(wi_landcover, outline_poly = wis_poly) }
Run the code above in your browser using DataLab