Learn R Programming

ggplot2 (version 3.5.0)

ignoring_data: Ignoring and exposing data

Description

The .ignore_data() function is used to hide <AsIs> columns during scale interactions in ggplot_build(). The .expose_data() function is used to restore hidden columns.

Usage

.ignore_data(data)

.expose_data(data)

Value

A modified list of <data.frame>s

Arguments

data

A list of <data.frame>s.

Examples

Run this code
data <- list(
  data.frame(x = 1:3, y = I(1:3)),
  data.frame(w = I(1:3), z = 1:3)
)

ignored <- .ignore_data(data)
str(ignored)

.expose_data(ignored)

Run the code above in your browser using DataLab