plot_class {autocogs} | R Documentation |
First class of the plot object. Exception is ggplot2 as many objects are of class 'gg'
plot_class(p)
## Default S3 method:
plot_class(p)
## S3 method for class 'gg'
plot_class(p)
## S3 method for class 'ggplot'
plot_class(p)
p |
plot object to retrieve class from |
library(ggplot2)
p <- qplot(Sepal.Length, Sepal.Width, data = iris)
plot_class(p)