Learn R Programming

RgoogleMaps (version 1.2.0.2)

AddAlpha: add alpha level to color that lacks one

Description

add alpha level to color that lacks one

Usage

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

Examples

Run this code
#example: 
require(RColorBrewer)
plotclr <-brewer.pal(8,"YlOrRd")
plotclr = AddAlpha(plotclr,0.5)

Run the code above in your browser using DataLab