Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

transpGraySca

Make single vector gray-gradient


Description

This function helps making gray-gradients. Note : The resulting color gradient does not seem linear to the human eye, you may try gray.colors instead

Usage

transpGraySca(startGray = 0.2, endGrey = 0.8, nSteps = 5, transp = 0.3)

Arguments

startGray

(numeric) gray shade at start

endGrey

(numeric) gray shade at end

nSteps

(integer) number of levels

transp

(numeric) transparency alpha

Value

character vector (of same length as x) with color encoding

See Also

Examples

layout(1:2)
col1 <- wrMisc::transpGraySca(0.8,0.3,7,0.9) 
pie(rep(1,length(col1)),col=col1,main="from transpGraySca")
col2 <- gray.colors(7,0.9,0.3,alph=0.9)
pie(rep(1,length(col2)),col=col2,main="from gray.colors")

wrMisc

Analyze Experimental High-Throughput (Omics) Data

v1.5.4
GPL-3
Authors
Wolfgang Raffelsberger [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.