powered by
This function transformed the category data in the categorized format by ordering the values.
anim_prep_cat( data, id = NULL, values = NULL, time = NULL, group = NULL, order = NULL, label = NULL )
A categorized data.
A data frame contained the category values.
The column name that represents the identifiers variable.
The column name contains the category values.
The column name that represents the time variable.
The column name that represents the distinguished group between the values.
A vector of order for sorting the category values.
A vector of labels to represent the qtile.
The function takes the input data, ordering the values, and assigning the variable names.
anim_prep_cat(data = aeles, id = id, values = party, time = year)
Run the code above in your browser using DataLab