Description Usage Arguments Examples
Takes a vector or matrix of a model state, e.g. S, I or R, and plots it back on the original supplied population map
1 | plot.state(state, examras, unipix, main = NULL)
|
state |
Matrix or vector of a model state, e.g. S, I or R |
examras |
Population raster used to determin the landscape, e.g. sgpop |
unipix |
Universal pixel lookup table, see ?make.unipix |
main |
Optional character title |
1 2 3 4 5 6 7 8 9 | data(sgdat)
data(sgpop)
sgpop <- pop.process(sgpop, agg = 10)
unipix <- make.unipix(sgpop)
sgdat <- data.frame(sgdat, patchID = apply(cbind(sgdat[, 3:2]), 1, pix.id.find, unipix))
sero <- c(0.577, 0.659, 0.814)
startweek <- 40
stim <- stim.generate(sgdat, sero, startweek, sgpop, unipix)
plot.state(stim)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.