File: ggplot_gtable.Rd

package info (click to toggle)
r-cran-ggplot2 4.0.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 11,084 kB
  • sloc: sh: 15; makefile: 5
file content (33 lines) | stat: -rw-r--r-- 1,166 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot-build.R
\name{ggplot_gtable}
\alias{ggplot_gtable}
\title{Build a plot with all the usual bits and pieces.}
\usage{
ggplot_gtable(data)
}
\arguments{
\item{data}{plot data generated by \code{\link[=ggplot_build]{ggplot_build()}}}
}
\value{
a \code{gtable} object
}
\description{
This function builds all grobs necessary for displaying the plot, and
stores them in a special data structure called a \code{\link[gtable:gtable]{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.
}
\details{
The \code{ggplot_gtable()} function is vestigial and the \code{gtable_ggplot()} function
should be used instead.
}
\seealso{
\code{\link[=print.ggplot]{print.ggplot()}} and \code{\link[=benchplot]{benchplot()}} for
for functions that contain the complete set of steps for generating
a ggplot2 plot.

The \href{https://ggplot2-book.org/internals#sec-ggplotgtable}{gtable step section} of the online ggplot2 book.
}
\keyword{internal}