Built by ggnext() and grown with +. Holds everything needed to compute geometry; rendering never reaches back past the computed buffer.

GgnextPlot(
  data = NULL,
  mapping = NULL,
  layers = list(),
  scales = list(),
  coord = Coord(),
  interaction = NULL,
  theme = NULL,
  labels = NULL,
  color_scale = NULL,
  facet = NULL,
  animation = NULL,
  size = NULL
)

Arguments

data

Default data frame for all layers.

mapping

Default aesthetic mapping from aes().

layers

List of Layer objects.

scales

Named list of Scale objects, keyed by aesthetic.

coord

A Coord subclass instance.

interaction

An Interact spec, or NULL for a static plot.

theme

A Theme object controlling the plot chrome.

labels

A Labels object with the title block and axis titles.

color_scale

A ColorScale palette override, or NULL.

facet

A Facet spec, or NULL for a single panel.

animation

An Animation spec, or NULL.

size

Device size in pixels, c(width, height).

Value

An S7 object of class GgnextPlot, as returned by ggnext().