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

gf_empty

Create an "empty" plot


Description

This is primarily useful as a way to start a sequence of piped plot layers.

Usage

gf_empty(environment = parent.frame())

Arguments

environment

An environment passed to ggplot2::ggplot()

Value

A plot with now layers.

Examples

gf_empty()
data(penguins, package = "palmerpenguins")
gf_empty() %>%
  gf_point(bill_length_mm ~ bill_depth_mm, data = penguins, color = ~species)

ggformula

Formula Interface to the Grammar of Graphics

v0.10.1
MIT + file LICENSE
Authors
Daniel Kaplan [aut], Randall Pruim [aut, cre]
Initial release

We don't support your browser anymore

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