getColorVector: Extracting distinctive colors from RColorBrewer package

Description Usage Arguments Value Author(s) Examples

Description

Function for obtaining a vector of RGB color codes where the colors are as distinctive as possible from each other. This function extracts colors from Paired (12 colors), Set2 (8 colors), and Dark2 (8 colors) palettes provided in the RColorBrewer package. If you need more than 28 colors, please remember to add your own palette.

Usage

1
getColorVector(opacity = 0.7, display = FALSE)

Arguments

opacity

Factor modifying the opacity, valued between [0,1]. Default is set to 0.7.

display

By default set to FALSE; if TRUE, displays the color palette.

Value

Return vector of 28 distinctive RGB color codes.

Author(s)

Hande Topa, hande.topa@helsinki.fi

Examples

1
color_vector=getColorVector()

PROBIC/GPrank documentation built on May 7, 2019, 11:53 p.m.