createClassAndColors: Function to create sorted class labels and colors for...

Description Usage Arguments Value

View source: R/ggplot_theme_pub.R

Description

Function to create sorted class labels and colors for reproducable ggplot objects

Usage

1
2
3
4
5
6
7
8
9
createClassAndColors(
  class,
  QC_label = "QC",
  Blank_label = "Blank",
  QC_color = "#000000",
  Blank_color = "#A65628",
  manual_color = c("#386cb0", "#ef3b2c", "#7fc97f", "#fdb462", "#984ea3", "#a6cee3",
    "#778899", "#fb9a99", "#ffff33")
)

Arguments

class

Vector of class labels.

QC_label

Label used for QC samples. If set to NULL, assumes that no QC samples are present in data set

Blank_label

Label used for blank samples, if set to NULL no samples will be removed

QC_color

Color to use for QC samples

Blank_color

Color to use for blank samples

manual_color

Colors to usef for samples classes

Value

List of processed data table and RSD


computational-metabolomics/qcrms documentation built on Jan. 18, 2021, 1:46 a.m.