Re: [R] Colour code y-axis labels on a dot plot

2011-09-16 Thread Carlos Ortega
Hi, Sorry but I am not able to reproduce the plot with your code. I could change two sentences which got an error (highlighted the changes): # Change 1 key1 <- draw.key(list(text=list(levels(*as.factor*(Cal_dat$Cmmdty))), # Change 2 ave_dat<-agg

Re: [R] Colour code y-axis labels on a dot plot

2011-09-15 Thread markm0705
Dear Carlos Attached is attempt at getting your scales suggestion to work (which at the moment does not) - I'm hoping you have the time to assist again (data file correctly attached this time). Thanks in advance Mark M On Thu, Sep 15, 2011 at 11:30 PM, Carlos Ortega [via R] < ml-node+s78

Re: [R] Colour code y-axis labels on a dot plot

2011-09-15 Thread Carlos Ortega
Hi, You can use scales() and parametrize it with a list where you can define colors, fonts, etc. I could not test it on your code because variable "Commodity" is not present in the dataset you provided. Regards, Carlos Ortega www.qualityexcellence.es On Thu, Sep 15, 2011 at 11:03 AM, markm0705

[R] Colour code y-axis labels on a dot plot

2011-09-15 Thread markm0705
Dear R helpers I would like to be able to colour code the y-axis labels on a complex dot plot by a variable known as company (of which there are only two). The code is below and data attached. Thanks MarkM library("lattice") library(latticeExtra) # for mergedTrellisLegendGrob() # set size of