utils_plot: Utility plotting functions

Description Usage Arguments Details Value

Description

Utility functions for plotting conceptual figures.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
make_d(x, ...)

plot_d(d, plotd = FALSE, ...)

txt_tau(e, tau = 0.95, ht, i, ...)

txt_val(e1, e2, e3, xval = 18.5, ht, ...)

set_par(panels = 1, ...)

add_text(x, y, labels, bold = FALSE, ...)

colvec(x, n = 99, alpha = 0.6, begin = 0.2, end = 0.9, dir = 1,
  pal, ...)

surfcol(x, ngrid, alpha = 0.6, begin = 0.2, end = 0.9, dir = 1,
  pal, ...)

plot_loess(x, y, col = "#00000040", lcol = "#FF0000BF", cex = 0.8,
  pch = 16, las = 1, bty = "L", ...)

Arguments

x

vector of climate values at which a species occurs.

...

further arguments passed to other functions.

d

density object.

plotd

logical, plot the density as polygon?

e

ECDF object.

tau

specified quantile level.

ht

height of text label in relative coordinates.

i

character, text in subscript.

e1, e2, e3

three ECDF objects.

xval

specified x value to return quantile values.

panels

number of figure panels in 'set_par'.

y

numeric, relative vertical position of text in 'add_text'.

labels

character vector of text to plot in 'add_text'.

bold

logical, should panel label be bold in 'add_text'?

n

number of unique colors to be used in the palette.

alpha

alpha transparency in [0,1].

begin

hue in [0,1] at which the viridis colormap begins.

end

hue in [0,1] at which the viridis colormap ends.

dir

order of colors in the viridis colormap scale; if 1, the default, colors are ordered from darkest to lightest; if -1, then reversed.

pal

optional specification for a color palette; defaults to viridis::inferno palette if missing.

ngrid

number of grid cells in the matrix of values plotted in 'persp'.

col, lcol, cex, pch, las, bty

graphical parameters following par and plot.

Details

Lightweight functions to plot conceptual figures.

Value

See below.


phytomosaic/vuln documentation built on Sept. 21, 2019, 8:23 a.m.