color.alpha: Create a color corresponding to the given intensities

View source: R/color.alpha.R

color.alphaR Documentation

Create a color corresponding to the given intensities

Description

This function could be used as creating a color based on the given intensities of points.

Usage

color.alpha(color = "red", ...)

Arguments

color

a string describing a colour.

...

further arguments pass to rbg function.

Examples

color <- color.alpha("blue",alpha=0.25)

N <- 2000
x <- rnorm(N,50,5)
y <- x +rnorm(N)
plot(x, y,col=color, pch=19)


liuguofang/figsci documentation built on Nov. 24, 2023, 1:45 p.m.