From dmurdoch@pair.com  Fri Jan 24 13:07:04 2003
From: dmurdoch@pair.com (Duncan Murdoch)
Date: Fri Jan 24 13:07:04 2003
Subject: [Rd] new function: showcolors {base}
In-Reply-To: <20030124102209.A1920@s1x.zimnet.ch>
References: <20030124102209.A1920@s1x.zimnet.ch>
Message-ID: <f6a23v0bdiujtcpk2vobscq0j8iqsarubp@4ax.com>

On Fri, 24 Jan 2003 10:22:09 +0100, you wrote:

>I propose to add a function that allows
>to display colors selected by a text pattern
>or by color vectors in a plot.
>

That's a nice function.  I'd suggest some small changes:

1.  Return the vector of colour names (invisibly), and have a plot =
TRUE argument to control whether the plot is drawn or not, i.e.
  reds <- showcolors("red", plot = FALSE) would be just a grep of the
colour list.

2.  Change the description of the pie = FALSE option to say it
displays "lines", not "bars", or add a separate "lines" option.
Otherwise it's not obvious that lty would do anything.

Duncan Murdoch



[Rd] new function: showcolors {base}
Duncan Murdoch