Description Usage Arguments Warning See Also
View source: R/plotSpatialTerm.R
Plots summaries of the spatial term estimates from a fitted FCS2 model on a map of the spatial regions.
1 2 3 4 5 6 7 8 9 10 | plotSpatialTerm(
map,
fit,
type = "mean",
abundance = TRUE,
prevalence = TRUE,
posterior = !is.null(fit$bugsFit),
inla = !posterior,
...
)
|
map |
a |
fit |
an |
type |
which summary to plot. Either |
abundance |
whether the spatial term (with these regions) is in the abundance regression component and should be plotted. |
prevalence |
whether the spatial term (with these regions) is in the prevalence regression component and should be plotted. |
posterior |
whether to plot the posterior estimates of the spatial term (if available). |
inla |
whether to plot the approximate INLA estimates of the spatial term. |
... |
further arguments passed to |
This function requires the additional package sp to
provide the SpatialPolygonsDataFrame
map. This package
is one of the requirements of the package maptools which may also be
useful for creating map
from an ESRI shapefile using the function
readShapePoly
.
fcs2SpatialSummary
which this function uses to attach
the spatial summaries to the map before plotting.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.