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.

autolayer(object, ...)



an object, whose class will determine the behaviour of autolayer


other arguments passed to specific methods


a ggplot layer

See also

autoplot, ggplot and fortify