Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

ggplot_gtable

Build a plot with all the usual bits and pieces.


Description

This function builds all grobs necessary for displaying the plot, and stores them in a special data structure called a gtable. This object is amenable to programmatic manipulation, should you want to (e.g.) make the legend box 2 cm wide, or combine multiple plots into a single display, preserving aspect ratios across the plots.

Usage

ggplot_gtable(data)

ggplotGrob(x)

Arguments

data

plot data generated by ggplot_build

x

ggplot2 object

plot

plot object

Value

a gtable object

See Also

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


ggtern

An Extension to 'ggplot2', for the Creation of Ternary Diagrams

v3.3.0
GPL-2 | file LICENSE
Authors
Nicholas Hamilton [aut, cre]
Initial release
2020-04-9

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.