Skip to contents

View a trelliscope display

Usage

view_trelliscope(trdf = NULL)

Arguments

trdf

A trelliscope data frame created with as_trelliscope_df() or a data frame which will be cast as such.

Examples

library(ggplot2)

panel_dat <- (
  ggplot(gap, aes(year, life_exp)) +
    geom_point() +
    facet_panels(vars(country, continent))
) |>
  as_panels_df()

disp <- panel_dat |>
  as_trelliscope_df(name = "life_expectancy")

if (FALSE) { # \dontrun{
view_trelliscope(disp)
} # }