[R] (offtopic) I need two sets of 5 different color scales

Thomas Lumley tlumley at u.washington.edu
Mon Apr 12 16:21:24 CEST 2004


On Sat, 10 Apr 2004, Tamas Papp wrote:
>
> I need advice in the following: I need two sets of colors for B and F
> which are easy to distinguish (when printed on a color laser printer),
> represent cardinality (ie have an intuitive mapping to an interval) or
> at least ordinality.

It's not offtopic.  This is what the RColorBrewer package is for. If you
look at Cindy Brewer's web version (www.colorbrewer.org) there is
additional information about which scales work well on projectors, cheap color
printers, for people with red-green vision anomalies, and so on.

(It would be nice to have these additional data in the R package)

	-thomas



>
> I have experimented with the following:
>
> Bcolors <- hsv(.6, seq(0.2, 1, length=5), 1)
> Fcolors <- hsv(seq(.1,0, length=5), seq(0.2, 1, length=5)
>
> this is what you see in the plot.  What colors would you use?  Do you
> think that varying both brightness and hue helps to distinguish
> colors?  Should I change saturation, too?
>
> Thanks,
>
> Tamas
>
> PS.: The plot is simply gzipped.  If you need a zipped version, or the
> source code, contact me.
>
> --
> Tamás K. Papp
> E-mail: tpapp at axelero.hu
> Please try to send only (latin-2) plain text, not HTML or other garbage.
>

Thomas Lumley			Assoc. Professor, Biostatistics
tlumley at u.washington.edu	University of Washington, Seattle




More information about the R-help mailing list