Learn R Programming

upsetjs (version 1.11.1)

addQuery: adds a new query to the plot

Description

adds a new query to the plot

Usage

addQuery(upsetjs, name, color, elems = NULL, set = NULL)

Value

the object given as first argument

Arguments

upsetjs

an object of class upsetjs or upsetjs_proxy

name

name of the query

color

color of the query

elems

the list of elems to highlight

set

the set name, similar to the selection

Examples

Run this code
upsetjs() %>%
  fromList(list(a = c(1, 2, 3), b = c(2, 3))) %>%
  addQuery(name = "Q1", color = "red", set = "b")

Run the code above in your browser using DataLab