# NOT RUN {
file <- system.file("external/model.sdm", package="sdm")
m <- read.sdm(file) # a sdmModels Object (fitted using sdm function)
roc(m)
roc(m,1) # for the first model
roc(m, 1:2)
roc(m,method = 'glm',smooth = T) # only for models fitted using glm method & with smoothed curve
# }
Run the code above in your browser using DataLab