plot_map: Map of estimation plots

Description Usage Arguments Details Value Examples

Description

Map geographic plot locations, colored by value.

Usage

1
plot_map(x, xvar, log = TRUE, col, xlab, ylab, ...)

Arguments

x

'summary_plot' object from function of the same name.

xvar

name of variable in x for which colors are rendered.

log

logical, use 'log10(x+1' transformation (default) or not.

col

a vector of colors. If missing (default) then colors follow inferno.

xlab, ylab

optional axis labels.

...

further arguments passed to plot.

Details

Color values are relativized for each graphical image; plotting absolute values (when these differ among several plots) may require manually feeding a color vector in the proper order.

Value

Plots to device.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data(est)
x <- calc_biomass(est)
s <- summary_plot(x)
s$lat <- x$lat[match(s$plot, x$plot)]  # match lat/lon to s
s$lon <- x$lon[match(s$plot, x$plot)]  # match lat/lon to s
par(mfrow=c(2,2))
plot_map(s, total_mn, main='Total biomass')
plot_map(s, moss_mn, main='Moss biomass')
plot_map(s, lich_mn, main='Lichen biomass')
plot_map(s, fgr, main='Functional grp richness')

phytomosaic/grlyr documentation built on May 25, 2020, 7:04 p.m.