generate_expt_colors: Set up default colors for a data structure containing usable...

View source: R/expt.R

generate_expt_colorsR Documentation

Set up default colors for a data structure containing usable metadata

Description

In theory this function should be useful in any context when one has a blob of metadata and wants to have a set of colors. Since my taste is utterly terrible, I rely entirely upon RColorBrewer, but also allow one to choose his/her own colors.

Usage

generate_expt_colors(
  sample_definitions,
  cond_column = "condition",
  by = "sampleid",
  ...
)

Arguments

sample_definitions

Metadata, presumably containing a 'condition' column.

cond_column

Which column in the sample data provides the set of 'conditions' used to define the colors?

by

Name the factor of colors according to this column.

...

Other arguments like a color palette, etc.

Value

Colors!

See Also

[create_expt()]


elsayed-lab/hpgltools documentation built on May 9, 2024, 5:02 a.m.