panels: Panels Wrapper Function

View source: R/tidy.R

panelsR Documentation

Panels Wrapper Function

Description

Panels Wrapper Function

Usage

panels(.x, .f, ...)

Arguments

.x

a list or atomic vector (see map for details)

.f

a function, formula, or atomic vector (see map for details)

...

additional arguments passed on to .f (see map for details)

Details

See map

Examples


library(dplyr)
library(tidyr)
library(plotly)
ggplot2::mpg %>%
  nest(data = !one_of(c("manufacturer", "class"))) %>%
  mutate(panel = map_plot(data, function(x) {
    plot_ly(data = x, x = ~hwy, y = ~cty,
      type = "scatter", mode = "markers")
  })) %>%
  trelliscope(name = "city_vs_highway_mpg")


trelliscopejs documentation built on Aug. 8, 2025, 6:40 p.m.