fortify {ggplot2} | R Documentation |
Method to convert a generic R object into a data frame useful for plotting. Takes its name from the idea of fortifying the original data with model fit statistics, and vice versa.
fortify(model, data, ...)
model |
model or other R object to convert to data frame |
data |
original dataset, if needed |
... |
other arguments passed to methods |