Re: [R] Problem with colormodel in pdf driver

2009-01-26 Thread Luis Torgo
Prof Brian Ripley wrote: On Mon, 26 Jan 2009, Luis Torgo wrote: Greg Snow wrote: You may want to consider a dotchart instead of a barplot. Then you can distinguish between groups by using symbols, grouping, and labels rather than depending on colors/shades of grey. Thanks Greg. The only p

Re: [R] Problem with colormodel in pdf driver

2009-01-26 Thread Prof Brian Ripley
On Mon, 26 Jan 2009, Luis Torgo wrote: Greg Snow wrote: You may want to consider a dotchart instead of a barplot. Then you can distinguish between groups by using symbols, grouping, and labels rather than depending on colors/shades of grey. Thanks Greg. The only problem is that I was tryin

Re: [R] Problem with colormodel in pdf driver

2009-01-26 Thread Luis Torgo
Greg Snow wrote: You may want to consider a dotchart instead of a barplot. Then you can distinguish between groups by using symbols, grouping, and labels rather than depending on colors/shades of grey. Thanks Greg. The only problem is that I was trying to illustrate the use of barplot() .

Re: [R] Problem with colormodel in pdf driver

2009-01-24 Thread Greg Snow
801.408.8111 > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- > project.org] On Behalf Of Luis Torgo > Sent: Friday, January 23, 2009 5:22 PM > To: r-help@r-project.org > Subject: [R] Problem with colormodel in pdf driver > > I'm tr

Re: [R] Problem with colormodel in pdf driver

2009-01-23 Thread Prof Brian Ripley
'gray' is what is in the code: 'grey' uses rgb -- just look at the pdf produced. The issue is that the wrong ('stroke' not 'fill') colour is set in ht 'gray' colormodel. On Fri, 23 Jan 2009, David Winsemius wrote: Try changing the color to "grey". Despite the help pages saying this: colorm

Re: [R] Problem with colormodel in pdf driver

2009-01-23 Thread Jorge Ivan Velez
Hi Luis, Following David's suggestion, it worked for me: pdf('exp.pdf',colormodel='grey') # Note the change here :) barplot(table(subset(iris,Petal.Width>1)$Species)) dev.off() Here is my session info: > sessionInfo() R version 2.8.1 Patched (2009-01-01 r47434) i386-pc-mingw32 locale: LC_COLLA

Re: [R] Problem with colormodel in pdf driver

2009-01-23 Thread David Winsemius
Try changing the color to "grey". Despite the help pages saying this: colormodel a character string describing the color model: currently allowed values are "rgb", "gray" and "cmyk". Defaults to "rgb". I got the expected behavior by making the "gray" -> "grey" change on my Mac OS 10.5.6/R2.

[R] Problem with colormodel in pdf driver

2009-01-23 Thread Luis Torgo
I'm trying to create figures in PDF that use the 'gray' colormodel instead of the default 'RGB' model, by requirements of a publisher. My problem has to do with the fact that I'm not being able to get gray colors with this option on the pdf() driver. Here is a small example for problem replica