Description Usage Arguments Details Value Examples
View source: R/data_functions.R
Aggregate to larger geography and output data
1 | aggregator_data(obj, aggpoly, verbose = TRUE)
|
obj |
A lgcpReal object from the lgcp function |
aggpoly |
A |
verbose |
Logical value indicating whether to show progress bar |
This function aggregates the output of plot or plot_hotspot to a larger geography and outputs a spatial polygons data frame that can be used to create other plots.
A spatialPolygonsDataFrame
1 2 3 4 5 6 7 8 9 10 11 12 | data(dat,square,square_pop)
lg1 <- lgcp(data=dat,
pop.var = c("popdens"),
boundary=square,
covariates=square_pop,
cellwidth=0.1,
laglength = 7,
mala.pars=c(200,100,1),
nchains=2)
p1 <- plot(lg1,square_pop)
aggregator_data(p1,
aggpoly=square_pop)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.