AddAlpha: add alpha level to color that lacks one

Description Usage Arguments Value Author(s) Examples

Description

add alpha level to color that lacks one

Usage

1
AddAlpha(plotclr, alpha = 0.5, verbose = 0)

Arguments

plotclr

color to be modified

alpha

alpha level

verbose

level of verbosity

Value

modified color with alpha value

Author(s)

Markus Loecher

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
#example: 


#require(RColorBrewer)


if (requireNamespace("RColorBrewer", quietly = TRUE)) {


  plotclr <- RColorBrewer::brewer.pal(8,"YlOrRd")


  plotclr = AddAlpha(plotclr,0.5)


} else {


  print("package RColorBrewer must be installed for this example")


}

RgoogleMaps documentation built on May 2, 2019, 5:03 p.m.