Skip to content

colours in a pdf

7 messages · R. Michael Weylandt, Gavin Blackburn, PIKAL Petr

#
How many colors are you looking for? There are limits to how many the
eye can make out, but perhaps the RColorBrewer package would be a
place to start. Also check out: http://colorbrewer2.org/

To see all the builtin colors, you can simply use the colors()
function, but your viewer won't be able to distinguish most of them.

Michael

On Fri, May 4, 2012 at 7:39 AM, Gavin Blackburn
<gavin.blackburn at strath.ac.uk> wrote:
#
Hi,

Thanks for the help. Extending the palette to 16 or 20 would be a big help. The largest number of files I've had to handle in a single group is 42 and I wouldn't expect it to get much bigger than that.

I'll take a look at RColorBrewer.

Cheers,

Gavin.

-----Original Message-----
From: R. Michael Weylandt [mailto:michael.weylandt at gmail.com] 
Sent: 04 May 2012 12:43
To: Gavin Blackburn
Cc: r-help at r-project.org
Subject: Re: [R] colours in a pdf

How many colors are you looking for? There are limits to how many the
eye can make out, but perhaps the RColorBrewer package would be a
place to start. Also check out: http://colorbrewer2.org/

To see all the builtin colors, you can simply use the colors()
function, but your viewer won't be able to distinguish most of them.

Michael

On Fri, May 4, 2012 at 7:39 AM, Gavin Blackburn
<gavin.blackburn at strath.ac.uk> wrote:
#
I'm not sure you'll be able to come up with 42 categorial colors:
perhaps facetting / small-multiples here? Colorspace (on CRAN) will
let you make palettes manually, so perhaps that's worth looking at.

Michael

On Fri, May 4, 2012 at 7:49 AM, Gavin Blackburn
<gavin.blackburn at strath.ac.uk> wrote:
#
Hi

One option for substantial distinguishable range of colours is jet.colors 
from matlab package.

Regards
Petr
is
colsVec<-1:(length(mzXMLfiles))
up
http://www.R-project.org/posting-guide.html
http://www.R-project.org/posting-guide.html
#
Ok great, thanks for the help. I don't mind sectioning data off into smaller groups in this early stage, but the more I can get in one group the better.

Cheers,

Gavin.

-----Original Message-----
From: R. Michael Weylandt [mailto:michael.weylandt at gmail.com] 
Sent: 04 May 2012 13:04
To: Gavin Blackburn
Cc: r-help at r-project.org
Subject: Re: [R] colours in a pdf

I'm not sure you'll be able to come up with 42 categorial colors:
perhaps facetting / small-multiples here? Colorspace (on CRAN) will
let you make palettes manually, so perhaps that's worth looking at.

Michael

On Fri, May 4, 2012 at 7:49 AM, Gavin Blackburn
<gavin.blackburn at strath.ac.uk> wrote:
#
Thanks Petr, I'll take a look at that as well.

Cheers,

Gavin.

-----Original Message-----
From: Petr PIKAL [mailto:petr.pikal at precheza.cz] 
Sent: 04 May 2012 13:09
To: Gavin Blackburn
Cc: r-help at r-project.org
Subject: Re: [R] colours in a pdf

Hi

One option for substantial distinguishable range of colours is jet.colors 
from matlab package.

Regards
Petr
is
colsVec<-1:(length(mzXMLfiles))
up
http://www.R-project.org/posting-guide.html
http://www.R-project.org/posting-guide.html