GetColors: Get Colors

View source: R/seqNdisplayR.R

GetColorsR Documentation

Get Colors

Description

Internal function: Get colors from a data frame containing at a minimum columns color and dataset

Usage

GetColors(filled_df)

Arguments

filled_df

a filled dataframe (see details)

Details

Get colors from a data frame containing at a minimum columns color and dataset. Columns on the right to dataset may contain subcategories, called subgroup_1, subgroup_2 etc. UPS: dataset and subgroup_s must be the right-most columns, see example below.

Value

Named lists or nested lists of named lists

Author(s)

MS

Examples

df = data.frame(color=c(rep('red', 4), rep('green', 2)),dataset=c(rep('a',4), rep('b',2)), subgroup_1=c('x','x','y','y', 'x','y'), subgroup_2=1:6, stringsAsFactors=FALSE)
GetColors(df)


THJlab/seqNdisplayR documentation built on Nov. 13, 2024, 10:36 a.m.