CALplot {vandalico}R Documentation

Calibration graph

Description

A function to plot a calibration graph.

Usage

CALplot(mat, by = 0.1)

Arguments

mat

A matrix with two columns. The first column must contain the suitability values (i.e., the classification rule); the second column must contain the presences and absences.

by

Size of the suitability intervals (bins). By default, by = 0.1.

Details

Dots for bins with 15 or more cases are shown in solid black; dots for bins with less than 15 cases are shown empty (see Jiménez-Valverde et al. 2013). This way, by plotting the calibration graph before running AUCuniform, one can get a glimpse of how reliable uAUC or uSe* can be expected to be.

Value

This function returns a calibration plot

References

Jiménez-Valverde, A., Acevedo, P., Barbosa, A. M., Lobo, J. M. & Real, R. (2013). Discrimination capacity in species distribution models depends on the representativeness of the environmental domain. Global Ecol. Biogeogr., 22, 508-516.

Examples

suit<-rbeta(100, 2, 2) #Generate suitability values
random<-runif(100)
sp<-ifelse(random < suit,1 , 0) #Generate presence-absence data
CALplot(cbind(suit, sp))

[Package vandalico version 0.0.1 Index]