Makes stacked density plot

make_stacked_density_plot(
  raster_list,
  band_id = 1,
  var_name = "variable",
  limx = c(0, 1),
  logscale = FALSE,
  spatial_scales = NULL,
  ...
)

Arguments

raster_list

a list of stars or RasterStack objects

band_id

numeric, identifier of the band of the stars object

var_name

character, used for the title of the graph

limx

numeric limits of the x-axis, default to c(0,1)

logscale

logical if TRUE the x-axis is log-transformed

spatial_scales

numeric, the spatial scales corresponding to each raster in raster_list

...

passed to ggplot2::scale_color_viridis_c()

Value

a ggplot() object