map_from_variable: Create a raster from values and plot it to the current device

Description Usage Arguments Details Value

View source: R/figures_maps.R

Description

Create a raster from values and plot it to the current device

Usage

1
map_from_variable(x, meta, subset, ..., beautify = TRUE)

Arguments

x

A vector of values to plot as a map, see details.

meta

The metadata list of a rSFSW2 simulation experiment.

subset

A vector logical vector to subset x or missing.

...

Additional parameters most of which are passed to the plotting function(s) image or rasterImage; exceptions are explained in the details.

beautify

Add country borders and the equator to the plot.

Details

x can be specified in two ways: codes:

The following arguments in ... are treated separately:

Value

The raster object generated from x by a call to create_raster_from_variables is returned invisibly. The function is called for its side effect of plotting to the current device.


DrylandEcology/rSW2analysis documentation built on Nov. 8, 2021, 4:20 p.m.