From aa3e8c183d214c855dab814101aa878f4f8cfa64 Mon Sep 17 00:00:00 2001 From: Barbier--Darnal Joseph Date: Tue, 23 Jun 2026 10:44:49 +0200 Subject: [PATCH] don't mention build_ggplot() in documentation #6869 --- R/plot-build.R | 5 ++--- man/ggplot_build.Rd | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/R/plot-build.R b/R/plot-build.R index 344fc8a13c..d8aab09701 100644 --- a/R/plot-build.R +++ b/R/plot-build.R @@ -1,10 +1,9 @@ #' Build ggplot for rendering. #' -#' `build_ggplot()` takes the plot object, and performs all steps necessary +#' `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. The `ggplot_build()` -#' function is vestigial and `build_ggplot()` should be used instead. +#' contain all information about axis limits, breaks etc. #' #' `get_layer_data()`, `get_layer_grob()`, and `get_panel_scales()` are helper #' functions that return the data, grob, or scales associated with a given diff --git a/man/ggplot_build.Rd b/man/ggplot_build.Rd index 5579c8a659..f195a31d63 100644 --- a/man/ggplot_build.Rd +++ b/man/ggplot_build.Rd @@ -37,11 +37,10 @@ plot). In \code{get_panel_scales()} (only integers allowed), the row of a facet scales for.} } \description{ -\code{build_ggplot()} takes the plot object, and performs all steps necessary +\code{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. The \code{ggplot_build()} -function is vestigial and \code{build_ggplot()} should be used instead. +contain all information about axis limits, breaks etc. } \details{ \code{get_layer_data()}, \code{get_layer_grob()}, and \code{get_panel_scales()} are helper