Learn R Programming

ggvegan (version 0.0-9)

fortify.fisherfit: Tidied species rank abundance data and estimated Fisher's log-series

Description

Prepares a data frame of results from a fisherfit object suitable for plotting with ggplot.

Usage

# S3 method for fisherfit
fortify(model, data, ...)

Arguments

model

an object of class fisherfit

data

original data set. Currently ignored.

...

other arguments pass to methods. Currently ignored.

Value

A data frame with columns 'Rank' and 'Abundance'. Additionally, Fisher's \(\alpha\) and the nuisance parameter are returned as attributes 'alpha' and 'k' respectively.

Examples

Run this code
# NOT RUN {
data(BCI)
mod <- fisherfit(BCI[5,])
head(fortify(mod))
# }

Run the code above in your browser using DataLab