plot_class {autocogs}R Documentation

Plot class

Description

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

Usage

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)

Arguments

p

plot object to retrieve class from

Examples

library(ggplot2)
p <- qplot(Sepal.Length, Sepal.Width, data = iris)
plot_class(p)

[Package autocogs version 0.1.4 Index]