getSampleColors: Gets the sample colors

View source: R/plots.R

getSampleColorsR Documentation

Gets the sample colors

Description

Gets the sample colors from the experimental conditions.

Usage

getSampleColors(conds, colorNames = names(conds))

getSamplePch(conds, pchNames = names(conds))

getSampleLty(conds, ltyNames = names(conds), maxLineTypes = 5)

Arguments

conds

conditions obtained from ezConditionsFromDesign() or ezConditionsFromDataset().

colorNames

a character vector containing the names for the colors.

hueStep

a numeric specifying the hue step for hsv().

Value

Returns a character vector containing colors in hex format.

Functions

  • getSamplePch(): Gets the sample pch from the experimental conditions.

  • getSampleLty(): Gets the sample line types from the experimental conditions.

Author(s)

Rehrauer, Hubert

Schmid, Peter

See Also

hsv

Examples

file = system.file("extdata/yeast_10k/dataset.tsv", package="ezRun", mustWork = TRUE)
ds = EzDataset$new(file=file, dataRoot=NULL)
cond = ezConditionsFromDataset(ds$meta)
cond = c(a1="a", a2="a", b1="b", b2="b")
getSampleColors(cond)
getSamplePch(cond)
getSampleLty(cond)

uzh/ezRun documentation built on March 5, 2025, 3:41 p.m.