rcolors: Random Colors

View source: R/jagshelper1.R

rcolorsR 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)

jagshelper documentation built on Oct. 22, 2024, 1:06 a.m.