[Rd] new function: showcolors {base}

Nicholas Lewin-Koh nikko@hailmail.net
Fri Jan 24 16:05:03 2003


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.
>