relevelGroups | R Documentation |
Sets the ordering of the groups in a grouping variable. Affects the order in which they appear in plots.
relevelGroups(object, grouping_variable, new_levels)
object |
An object of class |
grouping_variable |
Character value. The grouping variable of interest. Use
|
new_levels |
Character vector of group names in the order in which the new ordering is supposed to be stored. Must contain all groups of the grouping variable. |
An updated spata object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.