GPrank (version 0.1.4)

getColorVector: Extracting distinctive colors from RColorBrewer package

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

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.

Examples

Run this code
# NOT RUN {
color_vector=getColorVector()

# }

Run the code above in your browser using DataLab