class_ggplot: The ggplot class

class_ggplotR Documentation

The ggplot class

Description

The ggplot class collects the needed information to render a plot. This class can be constructed using the ggplot() function.

Usage

class_ggplot(
  data = waiver(),
  layers = list(),
  scales = NULL,
  guides = NULL,
  mapping = aes(),
  theme = NULL,
  coordinates = coord_cartesian(default = TRUE),
  facet = facet_null(),
  layout = NULL,
  labels = labs(),
  meta = list(),
  plot_env = parent.frame()
)

Arguments

data

A property containing any data coerced by fortify().

layers

A list of layer instances created by layer().

scales

A ScalesList ggproto object.

guides

A Guides ggproto object created by guides().

mapping

A mapping class object created by aes().

theme

A theme class object created by theme().

coordinates

A Coord ggproto object created by ⁠coord_*()⁠ family of functions.

facet

A Facet ggproto object created by ⁠facet_*()⁠ family of functions.

layout

A Layout ggproto object.

labels

A labels object created by labs().

meta

A list for additional metadata. This will be deprecated in the future.

plot_env

An environment.


hadley/ggplot2 documentation built on June 13, 2025, 12:51 a.m.