Re: [R] alternatives to RColorBrewer?

From: Dieter Menne <dieter.menne_at_menne-biomed.de>
Date: Thu, 24 Apr 2008 18:03:56 +0000 (UTC)

Andrew Yee <andrewjyee <at> gmail.com> writes:

>
> I've found RColorBrewer useful for its qualitative palettes, but wished that
> it could generate more than 12 qualitative palettes (e.g. with Set3). Any
> suggestions for alternative color palette generators that can handle e.g. 18
> distinctive colors? (I'm aware of using rainbow(), but this doesn't
> generate enough distinct colors when the number of palettes is large).

Assume you want 40 colors, get a basic color palette from RcolorBrewer, and use colorRampPalette to interpolate

# Brewer palette Paired 12
pal12 = c("#A6CEE3", "#1F78B4", "#B2DF8A", "#33A02C", "#FB9A99", "#E31A1C", "#FDBF6F", "#FF7F00", "#CAB2D6", "#6A3D9A", "#FFFF99", "#B15928") colorRampPalette(pal12)(40)

Dieter



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Thu 24 Apr 2008 - 19:06:02 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 24 Apr 2008 - 19:30:31 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive