R/gf_functions.R
gf_empty.Rd
This is primarily useful as a way to start a sequence of piped plot layers.
gf_empty(environment = parent.frame())
An environment passed to ggplot2::ggplot()
ggplot2::ggplot()
A plot with now layers.
gf_empty() data(penguins, package = "palmerpenguins") gf_empty() |> gf_point(bill_length_mm ~ bill_depth_mm, data = penguins, color = ~species) #> Warning: Removed 2 rows containing missing values (`geom_point()`).