autoplot.SpatRasterCollection {malariaAtlas} | R Documentation |
Quickly visualise Rasters downloaded from MAP
Description
autoplot.SpatRasterCollection
creates a map of all rasters in a autoplot.SpatRasterCollection object and
displays these in a grid.
Usage
## S3 method for class 'SpatRasterCollection'
autoplot(
object,
...,
shp_df = NULL,
legend_title = "",
plot_titles = TRUE,
fill_scale_transform = "identity",
fill_colour_palette = "RdYlBu",
printed = TRUE
)
Arguments
object |
SpatRasterCollection object to be visualised. |
... |
Other arguments passed to specific methods |
shp_df |
Shapefile(s) (data.frame) to plot with downloaded raster. |
legend_title |
String used as title for all colour scale legends. |
plot_titles |
Plot name of raster object as header for each individual raster plot? |
fill_scale_transform |
String givning a transformation for the fill aesthetic.
See the trans argument in |
fill_colour_palette |
String referring to a colorbrewer palette to be used for raster colour scale. |
printed |
Logical vector indicating whether to print maps of supplied rasters. |
Value
autoplot.SpatRasterCollection
returns a list of plots (gg objects) for each
supplied raster.
gg object