Skip to contents

Automatically plot results from CAVAanalytics main functions

Usage

plotting(
  rst,
  palette,
  legend_range,
  plot_titles,
  ensemble,
  bins,
  intervals,
  alpha,
  spatiotemporal,
  temporal,
  lwd,
  ...
)

Arguments

rst

output of one of CAVAanalytics functions, such as projections. rst is of class SpatRaster

palette

charachter. Color Palette. Default to NULL

legend_range

numeric. Fix legend limits. Default to NULL

plot_titles

character. Title of the plot legend. Default to default

ensemble

logical. Whether to visualize the ensemble mean or each individual model. Default to TRUE

bins

logical. Whether to visualize colors as a gradient or in bins. Default to FALSE

intervals

numeric vector. Controlling the number of bins when bins equal TRUE

alpha

numeric. Transparency of colors. Default to NA

spatiotemporal

logical. Whether computed yearly data should be visualized without spatial and temporal aggregation. Basically, frequencies are visualized

temporal

logical. Whether computed yearly data should be visualized temporally after spatial aggregation (median of all pixels)

lwd

numerical. Width of country boundaries. Default to 0.1

Value

ggplot object