Re: [R] Problem with R colors

2013-12-09 Thread Katharine Miller
- > David L Carlson > Department of Anthropology > Texas A&M University > College Station, TX 77840-4352 > > -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of Katharine > Miller > Sen

Re: [R] Problem with R colors

2013-12-09 Thread David Carlson
avid L Carlson Department of Anthropology Texas A&M University College Station, TX 77840-4352 -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Katharine Miller Sent: Monday, December 9, 2013 4:12 PM To: r-help@r-project.org Subject: [R] P

Re: [R] Problem with R colors

2013-12-09 Thread Sarah Goslee
Hi, col=552 isn't the same as colors()[552] - I think the former is drawn from your current palette, with recycling of indices. The default color palette has only eight colors. You need instead col=colors()[552] It's very difficult to get 20-30 readily distinguishable colors. You might try the

[R] Problem with R colors

2013-12-09 Thread Katharine Miller
Hello, I am having difficulty obtaining the correct colors in my R charts. > colors()[c(552, 254, 26)] [1] "red" "green" "blue" But, if I specify col=552 in my barplot, I get gray bars. Likewise, col=254 gives bright pink, and col=26 is a red-orange. I get accurate results when I spell out