ignoring_data: Ignoring and exposing data

ignoring_dataR Documentation

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)

Arguments

data

A list of ⁠<data.frame>⁠s.

Value

A modified list of ⁠<data.frame>s⁠

Examples

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)

ggplot2 documentation built on June 22, 2024, 11:35 a.m.