Description Usage Arguments Value Examples
Run a model and estimate underlying latent and probability field from point and polygon data using TMB.
1 | ggFieldEst(field, predList, sd = FALSE)
|
field |
field object which simulated underlying data |
predList |
list of model predictions |
sd |
boolean, plot the standard error of field estimates |
ggplot object of underlying field and model estimates
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## Not run:
unitSim <- simField(
N = 100, rangeE = .5,
offset = c(0.1, 0.2),
max.edge = c(0.1,0.2),
beta0 = -2)
pointDF1 <- samplePoints(unitSim, N=1200, M=100)
pointDF2 <- samplePoints(unitSim, N=1200, M=100)
modelPredList <- lapply(list(pointDF1, pointDF2), function(x){
simulateFieldCI(unitSim, runFieldModel(unitSim, x))
})
ggFieldEst(unitSim, modelPredList)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.