Description Usage Arguments Value Examples
rtPlotMapPop
plots map(s) of populations from simulation outputs
i.e. a passed array of day,y,x,sex,age.
Can plot a maximum of 16 days, will display the first 16 if you select more than this.
For adults to start with but could be used for pupae too.
1 2 3 |
aRecord |
array of day,y,x,sex,age |
days |
which days to plot, options 'all', 'final', a number >0 and <days in the simulation, or a series e.g. c(1,2) or c(4:7) |
ifManyDays |
days to plot if days='all' and num days > 16, Options: 'first' first 16 days, 'last' 16 days, 'firstlast' first8 and last8, 'spread' try to spread out days, e.g. if 32 it would plot 2,4,6, etc. can lead to uneven intervals. |
sex |
which sex to plot, 'both' or 'MF' for both in same plot, 'M' males, 'F' females, 'M&F' for separate MF plots (only available for a single day) |
age |
allows selection of an age range, e.g. c(1:19), c(20:120) |
title |
a title for the plot |
fMaxCellVal |
allow setting max value across multiple plots to keep colours constant |
ext |
allow zooming in on a region by ext=c(w,e,s,n), e.g. ext=c(10,40,10,40) ext=c(20,30,20,30) |
verbose |
print what it's doing |
raster brick used for plotting
1 2 | tst <- rt_runGridTestSpread()
rtPlotMapPop(tst)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.