- model
a binary-response model object of class "glm
". If this argument is provided, 'obs' and 'pred' will be extracted with mod2obspred
. Alternatively, you can input the 'obs' and 'pred' arguments instead of 'model'.
- obs
alternatively to 'model' and together with 'pred', a numeric vector of observed presences (1) and absences (0) of a binary response variable. Alternatively (and if 'pred' is a 'SpatRaster'), a two-column matrix or data frame containing, respectively, the x (longitude) and y (latitude) coordinates of the presence points, in which case the 'obs' vector will be extracted with ptsrast2obspred
. This argument is ignored if 'model' is provided.
- pred
alternatively to 'model' and together with 'obs', a vector with the corresponding predicted values of presence probability, habitat suitability, environmental favourability or alike. Must be of the same length and in the same order as 'obs'. Alternatively (and if 'obs' is a set of point coordinates), a 'SpatRaster' map of the predicted values for the entire evaluation region, in which case the 'pred' vector will be extracted with ptsrast2obspred
. This argument is ignored if 'model' is provided.
- link
the link function of the GLM; only 'logit' (the default) is implemented.
- plot.values
logical, whether to include in the plot diagnostic values such as explained deviance (calculated with the Dsquared
function) and pseudo-R-squared measures (calculated with the RsqGLM
function). Defaults to TRUE.
- plot.digits
integer number indicating the number of digits to which the values in the plot should be round
ed (if 'plot.values = TRUE'). Defaults to 3.
- xlab
character string specifying the label for the x axis.
- ylab
character string specifying the label for the y axis.
- main
character string specifying the title for the plot.
- na.rm
Logical value indicating whether missing values should be ignored in computations. Defaults to TRUE.
- rm.dup
If TRUE
and if 'pred' is a SpatRaster and if there are repeated points within the same pixel, a maximum of one point per pixel is used to compute the presences. See examples in ptsrast2obspred
. The default is FALSE.
- verbosity
integer specifying the amount of messages to display. Defaults to the maximum implemented; lower numbers (down to 0) decrease the number of messages.
- ...
additional arguments to pass to plot
.