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), hueStep = 0)

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)
getSampleColors(cond)
getSamplePch(cond)
getSampleLty(cond)

uzh/ezRun documentation built on April 24, 2024, 4:01 p.m.