Description Usage Arguments Details
View source: R/plot.bd_analysis.R
Plot the result of a call to bayDem_analyzeSoln. Three types of plots can be created: density, rate, and shaded density. The default is density.
1 2 3 |
x |
A list-like object of class |
plotType |
(default: 'density') The type of plot to make. Options are: 'density', 'rate', and 'shadeddensity'. |
showSPDF |
(default: FALSE) Whether to plot the summed probability. Ignored unless plotType is 'density'. |
showSim |
(default: FALSE) Whether to add the target density or rate to the plot. |
... |
Additional parameters passed on to other functions. |
an is the result of a call to bayDem_analyzeSoln. It is a list-like object of class bayDem_analysis with information on the quantiles of the density function and growth rate. The optional variables plotType, showSPDF and showSim control the type of plot that is made and characteristics of that plot.
The default plotType is 'density'. This plots the density the 50 the bounding quantiles given the level variable, lev, using in bayDem_analyzeSoln (dashed). Optionally, the summed probability density and known target distribution from a simulation can be added.
plotType 'rate' yields a plot of the rate (deriveative of density divided by density) instead of density. This plots the 50 bounding quantiles given the level variable, lev, used in bayDem_analyzeSoln (dashed). Optionally, the rate for the known target distribution from a simulation can be added. Shaded rectangles are added to the plot using an$growthState with the coloring positive / green, zero / grey, negative / red, and missing / white.
plotType 'shadeddensity' yields a plot of the density with shaded rectangles indicating the growth state. As with the plotType 'rate', this is done using the vector an$growthState with the coloring positive / green, zero / grey, negative / red, and missing / white. Optionally, the known target distribution from a simulation can be added.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.