autocogs (version 0.1.3)

plot_class: Plot class

Description

First class of the plot object. Exception is ggplot2 as many objects are of class 'gg'

Usage

plot_class(p)

# S3 method for default plot_class(p)

# S3 method for gg plot_class(p)

# S3 method for ggplot plot_class(p)

Arguments

p

plot object to retrieve class from

Examples

Run this code
# NOT RUN {
library(ggplot2)
p <- qplot(Sepal.Length, Sepal.Width, data = iris)
plot_class(p)
# }

Run the code above in your browser using DataLab