Skip to contents

Specify a "multiselect" input

Usage

input_multiselect(name, label = name, active = TRUE, options)

Arguments

name

Name of the input.

label

Description of the input.

active

Should the input be active by default?

options

A vector of options for the multiselect dropdown.

See also

Examples

library(ggplot2)
library(dplyr)

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

trell <- panel_dat |>
as_trelliscope_df() |>
add_inputs(
  input_multiselect(
    name = "Multiselect Input",
    label = "A space to add custom dropdown inputs",
    options =c("yes", "no")
  )
)
if (FALSE) { # \dontrun{
view_trelliscope(trell)
} # }