s-news
[Top] [All Lists]

[S] Follow up: Woes of colors in S-plus

To: "'s-news@wubios.wustl.edu'" <s-news@wubios.wustl.edu>
Subject: [S] Follow up: Woes of colors in S-plus
From: "Wright, Kevin" <WRIGHTKEVI@phibred.com>
Date: Sun, 19 Dec 1999 10:49:36 -0600
Sender: owner-s-news@wubios.wustl.edu
I had two replies to my lamentations.  Thanks to both.  One correction:  I
thought colors 17-30 were the same color.  Actually, those colors are subtly
varying shades which are used (I believe) for rendering surfaces among other
things.

John Wallace explained that the color numbers 17 and above are the first
color of the "Image Colors"

Anne York supplied a nice function for visualizing colors:

"swatch" <- function()
{
        plot(0:12, 0:12, col = 1, plot = F)
        for(i in 1:10) {
                for(j in 1:10) {
                        polygon(c(i, i, 1 + i, 1 + i), c(j, j + 1, j + 1,
j), 
                                col = 10 * (j - 1) + i)
                }
        }
}

Kevin Wright
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu.  To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message:  unsubscribe s-news

<Prev in Thread] Current Thread [Next in Thread>
  • [S] Follow up: Woes of colors in S-plus, Wright, Kevin <=