identify_data: Identify the data passed to ggplot

Description Usage Arguments Value

Description

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

Usage

1
2
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 fortify. If not specified, must be suppled in each layer added to the plot.

mapping

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

...

Other arguments passed on to methods. Not currently used.

environment

If an variable defined in the aesthetic mapping is not found in the data, ggplot will look for it in this environment. It defaults to using the environment in which ggplot() is called.

Value

Name of the data.frame passed to ggplot


ggghost documentation built on May 1, 2019, 9:25 p.m.