fortify.prestonfit: Tidied species octave abundance data
Description
Prepares a data frame of results from a vegan::prestonfit()
object suitable for plotting with ggplot2::ggplot().
Usage
# S3 method for prestonfit
fortify(model, data, ...)# S3 method for prestonfit
tidy(x, data, ...)
Value
A data frame with columns 'Octave'`` and 'Abundance'``.
Arguments
- model, x
an object of class vegan::prestonfit().
- data
original data set. Currently ignored.
- ...
other arguments pass to methods. Currently ignored.
Examples
Run this code
library("vegan")
data(BCI)
pfit <- prestonfit(colSums(BCI))
fortify(pfit)
Run the code above in your browser using DataLab