gtable_ggplot | R Documentation |
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.
gtable_ggplot(data)
ggplot_gtable(plot)
data |
plot data generated by |
The ggplot_gtable()
function is vestigial and the gtable_ggplot()
function
should be used instead.
a gtable
object
print.ggplot()
and benchplot()
for
for functions that contain the complete set of steps for generating
a ggplot2 plot.
The gtable step section of the online ggplot2 book.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.