Description Usage Arguments Value Author(s) Examples
A plot methods for classes "SpatialPolygonsDataFrame" and "SpNaBaPred".
1 | plot_predict(map, prediction, target = NULL, ...)
|
map |
A |
prediction |
A |
target |
|
... |
Parameters passed to other functions (See
|
a ggplot object
Enrique Del Callejo Canal (edelcallejoc@gmail.com).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | library(sp)
library(rgeos)
data(Mex0)
data(mammals)
# Generating de grid from Mex0 data
Mex0.grd<-grd_build(Mex0)
# Identification points of mammals with colnames = NULL.
x.mat<-id_pts(grd = Mex0.grd, pts = mammals)
# Creando el modelo
x.model <- NBModel(x.mat, target = 1:10, fac.lap = 0.01)
# Calculando la predicci<c3><b3>n
x.prediction <- predict(x.model, apr_inc = FALSE)
# Plot of one target
plot_predict(Mex0.grd, x.prediction, target = 1)
# plot prediction of richness
plot_predict(Mex0.grd, x.prediction, target = 1:10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.