View source: R/visualisation.R
preston_plot | R Documentation |
This function first sorts abundances into octaves, and then plots the resulting distribution.
preston_plot(abund, expected, ...)
abund |
vector containing the number of individuals per species |
expected |
vector containing the expected number of species per octave |
... |
further graphical arguments that can be passed to |
Thijs Janzen
theta = 10
m = 0.1
J = 1000
I = m * (J - 1) / (1 - m)
abund <- generate.ESF(theta, I, J)
par(mfrow = c(1,2))
preston_plot(abund)
abund.expect <- expected.SAD(theta, m, J)
preston_plot(abund, abund.expect)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.