makeSpatRasterAutoplot: Create a single (sub) plot for a SpatRaster

View source: R/autoplotRasterHelper.R

makeSpatRasterAutoplotR Documentation

Create a single (sub) plot for a SpatRaster

Description

Create a single (sub) plot for a SpatRaster

Usage

makeSpatRasterAutoplot(
  spatraster,
  rastername,
  shp_df,
  legend_title,
  fill_scale_transform,
  fill_colour_palette,
  plot_titles
)

Arguments

spatraster

SpatRaster object containing a single layer

rastername

raster name, to include in title

shp_df

sf shapefile

legend_title

title for legend

fill_scale_transform

scale

fill_colour_palette

palette

plot_titles

bool, whether to include title

Value

ggplot object


malariaAtlas documentation built on Oct. 27, 2023, 9:07 a.m.