get_bar_colours | R Documentation |
Returns the component colours of each type's contribution bars.
get_bar_colours(top_shift_scores, all_pos_contributions)
top_shift_scores |
top n values of the shift_scores data.frame from a shift object |
all_pos_contributions |
Defaults to FALSE when calling get_shift_graphs. |
Returns a list with 3 values. The values are lists of the colors to assign to the p_diff and s_diff components respectively. If just the overall contributions are being shown in a simple (not detailed) shift graph, then the "total" colours are used.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.