[R] Two variables on one lattice barchart

jimdare jamesdare26 at gmail.com
Sun Mar 29 22:31:36 CEST 2009


Hi,

I created the barchart below using the lattice package, however I can't seem
to find a way to add another variable as a line (see the desired
square/lines that I drew for the last 10 years of the plot).  Can anyone
help me with this?  Your help is much appreciated!

Code:

Schart<-barchart(Catch~Year,data=SNA, scales=list(col = "black", tck = c(1,
0),x=list(rot=45))) 

http://www.nabble.com/file/p22772314/eg.gif 
-- 
View this message in context: http://www.nabble.com/Two-variables-on-one-lattice-barchart-tp22772314p22772314.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list