opts_ggplot: Constructive options for class 'ggplot'

View source: R/s3-ggplot2-ggplot.R

opts_ggplotR Documentation

Constructive options for class 'ggplot'

Description

These options will be used on objects of class 'ggplot'.

Usage

opts_ggplot(constructor = c("ggplot", "next", "list"), ...)

Arguments

constructor

String. Name of the function used to construct the object, see Details section.

...

Additional options used by user defined constructors through the opts object

Details

Depending on constructor, we construct the object as follows:

  • "ggplot" (default): Use ggplot2::ggplot()

  • "next" : Use the constructor for the next supported class. Call .class2() on the object to see in which order the methods will be tried.

  • "list" : Use list() and treat the class as a regular attribute.

Value

An object of class <constructive_options/constructive_options_ggplot>


constructive documentation built on April 3, 2025, 9:39 p.m.