generate_color_mapping: Generate color mapping for all plots

Description Usage Arguments

View source: R/plot_helper.R

Description

When all the plots have the same set of values, instead of typing the color mapping for all plots, default color to value mapping can be given which will generate the color mapping for all the plots based on the unique values present in each column

Usage

1
generate_color_mapping(df, default_color_mapping)

Arguments

df

Data frame to be plotted using plot_timeline

default_color_mapping

Value to color mapping for all the plots in the data frame. ex: default_color_mapping <- c("0" = "#BCBEC0", "1" = "#1279C6")


timelineR documentation built on Jan. 11, 2020, 9:11 a.m.