add_category | R Documentation |
This appends an existing universe()
object with an existing category()
object.
This does the same checks done in universe()
but just on what is passed to category()
.
add_category(universe, category)
universe |
Output object from |
category |
Output object from |
A list
with special class universe
.
uni <- universe(
data = mtcars,
category(
name = "vs",
groups = c(0, 1),
targets = c(1/2, 1/2)
)
)
cat <- category(
name = "am",
groups = c(0, 1),
targets = c(1/3, 2/3)
)
add_category(uni, cat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.