Description Usage Arguments Author(s) Examples
View source: R/rdraws_rpvals.R
Plots the empirical density of a vector of discrete values, approximating the probability mass function (pmf). This can be considered a more appropriate alternative to plot(density(x))
in the case of a vector with a discrete (non-continuous) support, such as that calculated by an abundance estimator.
1 | plotdiscdensity(x, xlab = "value", ylab = "density", ...)
|
x |
The vector of values to plot |
xlab |
The X-axis label for plotting |
ylab |
The Y-axis label for plotting |
... |
Additional plotting arguments |
Matt Tyers
1 2 | draws <- rChapman(length=100000, N=500, n1=100, n2=100)
plotdiscdensity(draws) #plots the density of a vector of discrete values
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.