addNumericAttribute: adds a new numeric attribute to the plot

View source: R/attributes.R

addNumericAttributeR Documentation

adds a new numeric attribute to the plot

Description

adds a new numeric attribute to the plot

Usage

addNumericAttribute(upsetjs, name, values, min_value = NULL, max_value = NULL)

Arguments

upsetjs

an object of class upsetjs or upsetjs_proxy

name

name of the attribute

values

the values as a numeric vector

min_value

optional min domain value

max_value

optional max domain value

Value

the object given as first argument

Examples

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

upsetjs documentation built on July 13, 2022, 9:06 a.m.