Skip to content
Branch: master
Find file Copy path
Find file Copy path
7 contributors

Users who have contributed to this file

@hadley @BrianDiggs @wch @mitchelloharawild @karawoo @jiho @hrbrmstr
22 lines (19 sloc) 726 Bytes
#' Create a complete ggplot appropriate to a particular data type
#' `autoplot` uses ggplot2 to draw a particular plot for an object of a
#' particular class in a single command. This defines the S3 generic that
#' other classes and packages can extend.
#' @param object an object, whose class will determine the behaviour of autoplot
#' @param ... other arguments passed to specific methods
#' @return a ggplot object
#' @export
#' @seealso [autolayer()], [ggplot()] and [fortify()]
autoplot <- function(object, ...) {
#' @export
autoplot.default <- function(object, ...) {
stop("Objects of type ", paste(class(object), collapse = "/"),
" not supported by autoplot.", call. = FALSE)
You can’t perform that action at this time.