radplot | R Documentation |
Take a vector of species [relative] abundances and plot a rank-abundance distribution or Whittaker plot.
radplot(
ab,
maxrich = length(comm),
maxab = max(comm),
fill = "red",
shape = 16,
size = 2.5,
Whittaker = FALSE
)
ab |
A numeric vector of species abundances or relative abundances. |
maxrich |
Scalar, how many species to include space for |
maxab |
Scalar, how big is the largest abundance value |
fill |
Character string specifying a color, could be extended to permit name for community ID variable |
shape |
Character string for point shape, could be extended to permit name for community ID variable |
size |
Scalar, adjusts point size in ggplot object |
Whittaker |
Logical, if |
ggplot object with a rank-abundance plot
radplot(c(20,8,5,4,2,1))
radplot(c(20,8,5,4,2,1), Whittaker = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.