add_alphas: replace alpha values of an RGB string color vector

Description Usage Arguments

View source: R/clusterTools.R

Description

adds (or replaces existing) alpha values (from 0 to 1) to RGB string colors; extended to vectors from http://www.magesblog.com/2013/04/how-to-change-alpha-value-of-colours-in.html

Usage

1
add_alphas(col, alpha = rep(1, length(col)))

Arguments

col

a string vector of RGB color specifiers with ("#FF0000AA ") or without ("#FF0000") existing alpha values

alpha

a numeric vector of equal length as argument col providing new alpha values from 0 to 1


raim/segmenTools documentation built on Nov. 9, 2018, 5:38 p.m.