POCplot | R Documentation |
Produce a smoothed calibration plot for a presence-only model by the method of Phillips and Elith
POCplot(
pred,
back,
linearize = FALSE,
capUpperValues = TRUE,
title = "Calibration plot",
filename = NULL
)
pred |
Numeric. Vector of model predictions at occurrence points. |
back |
Numeric. Vector of model predictions at background points. |
linearize |
Logical. Should the logistic transform be applied to model predictions? The default is FALSE; see Details. |
capUpperValues |
Logical. Should computed values in smoother fit be clamped to 1? |
title |
Character. Title to appear in the plot. Default is a generic "Calibration plot". |
filename |
Character. Full path to a file into which the calibration plot will be written. Default (NULL) will cause the plot to appear on the standard graphics device. |
This is an adaptation of code published by Phillips and Elith (2010. POC plots: calibrating species distribution models with presence-only data. Ecology 91:2476–2484).
The original script set the default value of the parameter linearize to TRUE which applies a logistic transformation to the y-values in the POCplot. In development trials, this frequently produced numerical failures when values approaching 1 where transformed. It is perhaps intended to transform 'raw' values supplied by fitted ENMs to the logistic scale. However, the most frequent output from MaxEnt and MaxEnt-like models is already transformed onto a logistic or complementary log-log ('cloglog') scale. Inadvertent double application of a linearising transformation will cause numeric failures and severely distorted calibration plots. So, the default for linearize is set to FALSE.
A named list with the follow elements:
Data frame of results from the smoothing process; columns are: x = predicted probability of presence, y = (modelled) probability of presence, se = std error of the y-value at each x-value
A numeric object giving the Mean Squared Error between the line of equality between probability of presence (y) and predicted probability of presence (x) and the y-values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.