plotPNO: Plot Predicted Niche Occupancy Profiles

View source: R/plotPNO.R

plotPNOR Documentation

Plot Predicted Niche Occupancy Profiles

Description

Plot predicted niche occupancy profiles (PNOs). PNOs can be obtained in a geographical information system by summing the cumulative probabilies of each climatical value for a species distribution model (SDM).

Usage

plotPNO(
  x,
  subset = NULL,
  thinning = NULL,
  xlab = NULL,
  tail_threshold = 0,
  wm = FALSE,
  legend.pos = "topleft",
  legend.cex = 1
)

Arguments

x

A data frame or matrix with columns corresponding to species and rows corresponding to values along an environmental gradient. The first columns contains the environmental variable, the remaining colums probabilities of suitability.

subset

A vector of mode "character" which can be used to restrict the calculation of weighted means to those columsn in x whose column names match subset; defaults to NULL.

thinning

An integer that can be used to thin fuzzy PNOs prior to plotting; defaults to NULL.

xlab

A character string given the label for the x-axis.

tail_threshold

A numeric that can be used cut long tails of PNOs; defaults to 0.

wm

Logical indicating if weighted mean should added for each species.

legend.pos

Controls the position of the legend. Might eihter be a list object containing x and y coordinates (such as e.g. returned by locator) of the topleft corner of the legend box or one of the following: "topleft" (default), "bottomleft", "topright", or "bottomright". If legend.pos == NULL the plotting of the legend is suppressed.

legend.cex

Numeric controlling the size of the legend.

References

\insertRef

evanssmith2009phyloclim

See Also

pno

Examples

# load PNOs for Oxalis sect. Palmatifoliae
data(PNO)

# plot predicted niche occupany for annual mean temperature
plotPNO(x = PNO$AnnualMeanTemperature,
        xlab = "Annual Mean Temperature (degree C)")

# same plot, but with weighted means added
plotPNO(x = PNO$AnnualMeanTemperature,
        xlab = "Annual Mean Temperature (degree C)", wm = TRUE)

heibl/phyloclim documentation built on April 23, 2024, 2:39 a.m.