autolayer: Create a ggplot layer appropriate to a particular data type

View source: R/autolayer.R

autolayerR Documentation

Create a ggplot layer appropriate to a particular data type

Description

autolayer() uses ggplot2 to draw a particular layer for an object of a particular class in a single command. This defines the S3 generic that other classes and packages can extend.

Usage

autolayer(object, ...)

Arguments

object

an object, whose class will determine the behaviour of autolayer

...

other arguments passed to specific methods

Value

a ggplot layer

See Also

Other plotting automation topics: automatic_plotting, autoplot(), fortify()


ggplot2 documentation built on June 22, 2024, 11:35 a.m.