rcolors {jagshelper}R Documentation

Random Colors

Description

Creates a vector of randomly-generated colors.

Usage

rcolors(n)

Arguments

n

Vector length

Value

A vector of colors

Author(s)

Matt Tyers

Examples

n <- 1000
cols <- rcolors(n)
x <- runif(n)
y <- runif(n)
plot(x,y, col=cols, pch=16)

[Package jagshelper version 0.3.1 Index]