From nikko@hailmail.net  Fri Jan 24 16:05:03 2003
From: nikko@hailmail.net (Nicholas Lewin-Koh)
Date: Fri Jan 24 16:05:03 2003
Subject: [Rd] new function: showcolors {base}
In-Reply-To: <20030124102209.A1920@s1x.zimnet.ch>
References: <20030124102209.A1920@s1x.zimnet.ch>
Message-ID: <20030124150150.05C8E20A8A@www.fastmail.fm>

Hi,
I also think this is a neat function. I might suggest adding a stop error
for dislexics like me. Something like 
if(length(qx.colors)==0) stop(paste("No colors match query color
",col,".\n"))

Then there are no obscure error messages like
showcolors( col="gren",pie=FALSE)
Error in segments(x0, y0, x1, y1, col = col, lty = lty, lwd = lwd, ...) : 
        first argument invalid
In addition: Warning messages: 
1: no finite arguments to min; returning Inf 
2: no finite arguments to max; returning -Inf 


Nicholas

On Fri, 24 Jan 2003 10:22:09 +0100, "Wolfram Fischer - Z/I/M"
<wolfram@fischer-zim.ch> said:
> I propose to add a function that allows
> to display colors selected by a text pattern
> or by color vectors in a plot.
>



[Rd] new function: showcolors {base}
Nicholas Lewin-Koh