plot_lgcp_dat: Extract data from an lgcpReal object

Description Usage Arguments Value

View source: R/plot_functions.R

Description

Helper function to create plotting data from an lgcpReal object

Usage

 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
)

Arguments

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)

Value

A data.frame with model predictions across the computation grid used in the plotting functions in this package.


realTimeSurv documentation built on May 18, 2021, 9:07 a.m.