get_bar_colours: Get bar colours for plotting

View source: R/utils.R

get_bar_coloursR Documentation

Get bar colours for plotting

Description

Returns the component colours of each type's contribution bars.

Usage

get_bar_colours(top_shift_scores, all_pos_contributions)

Arguments

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.

Value

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.


pverspeelt/shifterator documentation built on Oct. 7, 2022, 3:37 a.m.