Description Usage Arguments Value
Select appropriate colors depending on 'valence' values in selection. Takes a named vector containing colours and assigns them in the correct order to factor levels from a dataframe.
1 2 | valence_colorer(valence_df, valence_col = "valence",
avc = all_valence_colors)
|
valence_df |
dataframe containing valence data; (truncated, arranged) output from |
valence_col |
string, selects column with strings / factors labelling valences to derive colors from. |
avc |
vector, named with valences, contains strings defining colours to use for each. |
A named vector with avc's elements in the order matching their levels in valence_df.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.