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

add.alpha

add.alpha


Description

A function to add alpha levels to RGB colors.

Usage

add.alpha(col,alpha)

Arguments

col

color from colors()

alpha

alpha level (between 0 and 1)

Note

This code was created by Markus Gesmann. Derek Beaton included the code in prettyGraphs because it is a versatile function and used in prettyGraphs. See: https://magesblog.com/post/2013-04-30-how-to-change-alpha-value-of-colours-in/

Author(s)

Markus Gesmann


prettyGraphs

Publication-Quality Graphics

v2.1.6
GPL-2
Authors
Derek Beaton
Initial release
2018-12-17

We don't support your browser anymore

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