Learn R Programming

papaja (version 0.1.2)

brighten: Brighten up a Color

Description

Brighten up a specified color (e.g., the swarm color in apa_beeplot()). This function is not exported.

Usage

brighten(col, factor)

Value

A character vector as returned by rgb().

Arguments

col

Colour to be brightened up. Can be anything that is digestible by col2rgb().

factor

Numeric. The rate with which the color channel should be boosted. Must be in the range between 0 and 1.