addalpha | R Documentation |
addalpha
adds transparency
information to a vector in R color format
addalpha(colors, alpha = 1)
colors |
a hexadecimal string as commonly used in R |
alpha |
a transparency factor: 0 - completely invisible 1 - fully opaque |
a hexadecimal string of length colors
library(RColorBrewer)
set2 <- brewer.pal(5, 'Set2')
set2.light <- addalpha(set2, alpha=0.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.