ggFieldEst: Run a Model and Estimate Underlying Field From Point and...

Description Usage Arguments Value Examples

View source: R/ggFieldEst.R

Description

Run a model and estimate underlying latent and probability field from point and polygon data using TMB.

Usage

1
ggFieldEst(field, predList, sd = FALSE)

Arguments

field

field object which simulated underlying data

predList

list of model predictions

sd

boolean, plot the standard error of field estimates

Value

ggplot object of underlying field and model estimates

Examples

 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)

nmmarquez/PointPolygon documentation built on Dec. 10, 2020, 1:15 a.m.