Learn R Programming

ggformula (version 0.9.0)

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

Run this code
# NOT RUN {
gf_empty()
gf_empty() %>%
  gf_point(Sepal.Length ~ Sepal.Width, data = iris, color = ~ Species)

# }

Run the code above in your browser using DataLab