powered by
adds a new query to the plot
addCategoricalAttribute(upsetjs, name, values, categories = NULL)
an object of class upsetjs or upsetjs_proxy
upsetjs
upsetjs_proxy
name of the attribute
the values as a factor
optional categories otherweise the levels are used
the object given as first argument
# NOT RUN { upsetjs() %>% fromList(list(a=c(1,2,3), b=c(2,3))) %>% addCategoricalAttribute('attr', as.factor(sample(c('male','female'), 3, replace=TRUE))) # }
Run the code above in your browser using DataLab