Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (13 sloc) 0.532 kb
# Fortify a model with data
# Generic method to supplement the original data with model fit statistics
#
# @seealso \code{\link{fortify.lm}}
# @alias fortify.data.frame
# @alias fortify.NULL
# @alias fortify.default
fortify <- function(model, data, ...) UseMethod("fortify")
fortify.data.frame <- function(model, data, ...) model
fortify.NULL <- function(model, data, ...) data.frame()
fortify.default <- function(model, data, ...) {
stop("ggplot2 doesn't know how to deal with data of class ", class(model), call. = FALSE)
}
Jump to Line
Something went wrong with that request. Please try again.