BuildPalette: Builds a complete color palette for the conditions given in...

Description Usage Arguments Value Author(s) Examples

View source: R/utils.R

Description

xxxx

Usage

1
BuildPalette(conds, base_palette = NULL)

Arguments

conds

The extended vector of samples conditions

base_palette

The basic color (HEX code) used to build the complete palette. This vector have the same length as unique(conds). Default base palette is 'Dark2' from the package RColorBrewer.

Value

A vector composed of HEX color code for the conditions

Author(s)

Samuel Wieczorek

Examples

1
2
3
utils::data(Exp1_R25_pept, package='DAPARdata')
conditions <- Biobase::pData(Exp1_R25_pept)$Condition
BuildPalette(conditions, c('AAAAAA', 'BBBBBB'))

DAPAR documentation built on April 11, 2021, 6 p.m.