Learn R Programming

ggplot2 (version 0.9.0)

fortify: Fortify a model with data.

Description

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.

Usage

fortify(model, data, ...)

Arguments

model
model or other R object to convert to data frame
data
original dataset, if needed
...
other arguments passed to methods

See Also

fortify.lm