ggplot_build: Build ggplot for rendering (ggtern version).

View source: R/plot-build.R

ggplot_buildR Documentation

Build ggplot for rendering (ggtern version).

Description

ggplot_build takes the plot object, and performs all steps necessary to produce an object that can be rendered. This function outputs two pieces: a list of data frames (one for each layer), and a panel object, which contain all information about axis limits, breaks etc.

Usage

layer_data(plot, i = 1L)

Arguments

plot

ggplot object

Details

layer_data, layer_grob, and layer_scales are helper functions that returns the data, grob, or scales associated with a given layer. These are useful for tests.

Author(s)

Nicholas Hamilton

See Also

print.ggplot and benchplot for functions that contain the complete set of steps for generating a ggplot2 plot.


ggtern documentation built on June 22, 2024, 11:01 a.m.