## Not run: ------------------------------------
# plot_occurrences <- function(speciesname, data, fold) {
# title <- paste0(speciesname, " (fold = ", fold, ")")
# plot(data$occurrence_train[,c("longitude", "latitude")], pch=".",
# col="blue", main = title)
# points(data$occurrence_test[,c("longitude", "latitude")], pch=".",
# col="red")
# }
#
# # plot training (blue) and test (red) occurrences
# # of the first 2 folds for the first 10 species
# species <- list_species()
# lapply_kfold_species(plot_occurrences, species=species[1:5,],
# fold_type = "disc", k = 1:2)
## ---------------------------------------------
Run the code above in your browser using DataLab