relevelGroups.Rd
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)
An object of class spata2
.
Character value. The grouping variable of interest. Use
getGroupingOptions()
to obtain all valid input options.
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.