autoplot.fisherfit | R Documentation |
Draws a bar plot of species rank abundance with Fisher's log-series superimposed.
## S3 method for class 'fisherfit'
autoplot(
object,
show.fitted = TRUE,
xlab = "Abundance",
ylab = "Number of Species",
title = "Fisher's log-series distribution",
bar.col = NA,
bar.fill = "grey35",
line.col = "red",
size = 1,
subtitle = NULL,
caption = NULL,
...
)
object |
an object of class |
show.fitted |
logical; should the estimated distribution also be plotted? |
xlab |
character; label for the x axis. |
ylab |
character; label for the y axis. |
title |
character; subtitle for the plot. |
bar.col |
colour for the bar outlines. The default, |
bar.fill |
fill colour for the bars. |
line.col |
colour for Fisher's log-series curve. |
size |
numeric; size aesthetic for the log-series curve. |
subtitle |
character; subtitle for the plot. |
caption |
character; caption for the plot. |
... |
additional arguments passed to other methods. |
A ggplot object.
Gavin L. Simpson
data(BCI)
mod <- fisherfit(BCI[5,])
autoplot(mod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.