Learn R Programming

tempR (version 0.10.1.1)

adjust.brightness: Adjust color brightness

Description

Select suitable colors for highlighting plots.

Usage

adjust.brightness(rgb.in, percent = 10)

Value

hex hex code for new color

Arguments

rgb.in

rgb of input color

percent

the degree to which input color will be modified/brightened

Examples

Run this code
(rgb.in <- c(col2rgb("red")))
adjust.brightness(rgb.in, percent = 10)

Run the code above in your browser using DataLab