R/rgcolorsfunc.R

"rgcolorsfunc" <-
function (n = 50) 
{
    k <- round(n/2)
    r <- c(rep(0, k), seq(0, 1, length = k))
    g <- c(rev(seq(0, 1, length = k)), rep(0, k))
	 b <- c(seq(0, 1, length = k), rev(seq(0, 1, length = k)))
    res <- rgb(r, g, b)
    #res <- rgb(r, g, rep(0, 2 * k))
    res
}

Try the ABarray package in your browser

Any scripts or data that you put into this service are public.

ABarray documentation built on Nov. 8, 2020, 5:25 p.m.