identify_data: Identify the data passed to ggplot

View source: R/ghost.R

identify_dataR Documentation

Identify the data passed to ggplot

Description

Duplicate arguments to ggplot2::ggplot with the intent that the data argument can be captured and identified.

Usage

identify_data(
  data,
  mapping = ggplot2::aes(),
  ...,
  environment = parent.frame()
)

Arguments

data

Default dataset to use for plot. If not already a data.frame, will be converted to one by ggplot2::fortify(). If not specified, must be supplied in each layer added to the plot.

mapping

Default list of aesthetic mappings to use for plot. If not specified, must be supplied in each layer added to the plot.

...

Other arguments passed on to methods. Not currently used.

environment

(deprecated) Used prior to tidy evaluation.

Value

Name of the data.frame passed to ggplot


jonocarroll/ggghost documentation built on June 14, 2025, 3:56 a.m.