addCategoricalAttribute | R Documentation |
adds a new query to the plot
addCategoricalAttribute(upsetjs, name, values, categories = NULL)
upsetjs |
an object of class |
name |
name of the attribute |
values |
the values as a factor |
categories |
optional categories otherweise the levels are used |
the object given as first argument
upsetjs() %>% fromList(list(a = c(1, 2, 3), b = c(2, 3))) %>% addCategoricalAttribute("attr", as.factor(sample(c("male", "female"), 3, replace = TRUE)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.