Learn R Programming

MetabolomicsBasics (version 1.4.5)

unique_labels: unique_labels.

Description

unique_labels will generate a dataframe with color and plotting character specification out of a sample table definition.

Usage

unique_labels(sam = NULL, g = NULL)

Value

Dataframe with group levels names and their color and plotting character specification.

Arguments

sam

Sample table.

g

Either column name from sam containing factor column or factor of same length as sam.

Details

If a color/symbol specification exists for a sample set containing replicate groups this function will help in retrieving this information per group which is useful in boxplot or legend functions (cf. examples).

Examples

Run this code
sam <- MetabolomicsBasics::sam
unique_labels(sam = sam, g = "GT")

Run the code above in your browser using DataLab