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

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

Arguments

model

an object of class prestonfit

data

original data set. Currently ignored.

...

other arguments pass to methods. Currently ignored.

Value

A data frame with columns 'Octave' and 'Abundance'.

Author

Gavin L. Simpson

Examples


data(BCI)
pfit <- prestonfit(colSums(BCI))
head(fortify(pfit))
#>   Octave Abundance
#> 0      0       9.5
#> 1      1      16.0
#> 2      2      18.0
#> 3      3      19.0
#> 4      4      30.0
#> 5      5      35.0