Description Usage Arguments Value
View source: R/plot_functions.R
Helper function to create plotting data from an lgcpReal object
1 2 3 4 5 6 7 8 9 10 11 | plot_lgcp_dat(
samps,
grid.data,
lg,
nchains,
idx.mapping = NULL,
cellwidth = 0.005,
covariates,
plotlag = 0,
data.out = FALSE
)
|
samps |
MCMC samples extracted from lgcpReal object |
grid.data |
Grid used for sampling and plotting |
lg |
lgcpReal model fit |
nchains |
Number of MCMC chains in model fit |
idx.mapping |
Matrix specifying plot order of grid cells |
cellwidth |
Cellwidth of the grid |
covariates |
SpatialPolygonsDataFrame with the original covariate data |
plotlag |
Laglength for the plot |
data.out |
Logical indicating whether to return data frame with only plotting data (FALSE) or a list containing each predicted model subcomponent (TRUE) |
A data.frame with model predictions across the computation grid used in the plotting functions in this package.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.