sets the selection of the chart

setSelection(upsetjs, name = NULL)

Arguments

upsetjs

an object of class upsetjs or upsetjs_proxy

name

the name of the set to select or a list with name and type

Value

the object given as first argument

Examples

upsetjs() %>%
  fromList(list(a = c(1, 2, 3), b = c(2, 3))) %>%
  setSelection("b")