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

# 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.

Author

Gavin L. Simpson

Examples


data(BCI)
mod <- fisherfit(BCI[5,])
head(fortify(mod))
#>   Rank Abundance
#> 1    1        36
#> 2    2        17
#> 3    3        13
#> 4    4         4
#> 5    5         6
#> 6    6         5