Learn R Programming

spind (version 2.1.3)

adjusted.actuals: Adjusted actual values

Description

Adjusts actual presence/absence data based on the autocorrelation in the predictions of a model. The function will optionally plot results of model predictions, un-modified actual presence/absence, and adjusted values.

Usage

adjusted.actuals(data, coord, plot.maps = FALSE, color.maps = FALSE)

Arguments

data

a dataframe or matrix containing actual presence/absence (binary, 0 or 1) values in 1st column and predicted values (numeric between 0 and 1) in 2nd column.

coord

a matrix of two columns of the same length providing integer, consecutively numbered coordinates for each occurence and prediction in data.

plot.maps

A logical indicating whether maps should be plotted. Default is FALSE.

color.maps

A logical value. If TRUE, produces colorful maps. If FALSE, produces grayscale maps. Default is grayscale.

Value

A vector of adjusted actual values.

Examples

Run this code
# NOT RUN {
data(hook)
data<- hook[,1:2]
coord<- hook[,3:4]
aa<-adjusted.actuals(data,coord,plot.maps=TRUE)

# }

Run the code above in your browser using DataLab