Description Usage Arguments Details Value Author(s) See Also Examples
Visualize a mating scene
1 2 3 4 5 6 7 | plotScene(scene, dimension = "auto", opening = NULL, closing = NULL,
dailyPoints = TRUE, drawQuartiles = TRUE, sortBy = c("start", "end"),
colorBy = NULL, sub = NULL, N = 3, label.sub = TRUE,
xlab.spat = NULL, ylab.spat = NULL, pch = 19, pt.cex = 0.75,
text.cex = 0.8, plot.lim.spat = TRUE, quartile.lwd = 1,
quartile.col = "gray55", peak.col = "gray27", labelID = FALSE,
mt1 = "F", mt2 = "M", leg.ncol = 1, ...)
|
scene |
a matingScene object |
dimension |
what dimension(s) of the mating scene should be visualized. Possible dimensions are 't' for temporal, 's' for spatial, 'mt' for mating type, and 'auto' (the default). For dimension = 'auto', all dimensions represented in the mating scene object will be plotted. |
opening |
the number of days to adjust the start date displayed for the temporal dimension. Start date defaults to minimum day of year of start date in mating scene object. |
closing |
the number of days to adjust the end date displayed for the temporal dimension. End date defaults to maximum day of year end date in mating scene object. |
dailyPoints |
logical indicating whether daily counts of individuals should be displayed for plots of the temporal dimension |
drawQuartiles |
logical indicating whether vertical lines should be drawn at population peak (see details) or quartiles |
sortBy |
character indicating which columns to sort segments of flowering schedule by. Defaults to 'start', then 'end'. Up to three variables may be specified. |
colorBy |
character optional, the name of a variable to use to assign color to segments or points. |
sub |
a vector containing the ids of individuals to be highlighted in the plots or a character string specifying how to choose individuals to highlight. Possible values are "random" or "all". If NULL, no subset will be identified in the plots. |
N |
a positive number, the number of individuals to sample if |
label.sub |
logical, indicating whether specified subset should be labeled |
xlab.spat |
character label for x-axis of spatial dimension plots. If NULL, defaults to 'easting'. |
ylab.spat |
character label for y-axis of spatial dimension plots. If NULL, defaults to 'northing'. |
pch |
specify point type to be used in plots. Defaults to pch = 19 (filled-in circle). If NULL, points will be labeled with their id. |
pt.cex |
specify point expansion factor (point size relative to device default) |
text.cex |
specify text expansion factor (text size relative to device default) |
plot.lim.spat |
if TRUE, spatial plot limits for lists of scenes are set by the maximum from all scenes |
quartile.lwd |
if |
quartile.col |
if |
peak.col |
if |
labelID |
if TRUE, the y-axis will be labeled with the id of the corresponding segment. |
mt1 |
label for mating type '1', if dioecious |
mt2 |
label for mating type '2', if dioecious |
leg.ncol |
number of columns to include in legend, if colorBy is not NULL |
... |
standard graphical parameters |
Population peak is defined by when maximum number individuals were reproductively receptive on one day. If multiple days had the same maximum number, peak is defined as the median of these dates.
nothing
optional arguments for the plot function
Amy Waananen
see plot3DScene
to visualize multiple dimensions on one plot
1 2 3 | pop <- simulateScene()
plotScene(pop)
## Not run: plotMap(NULL)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.