Re: [R] Two variables on one lattice barchart

2009-03-29 Thread jimdare
Don't worry everyone, I've solved it. See the code below: Schart<-barchart(Catch~Year,data=SNA, scales=list(col = "black", tck = c(1, 0),x=list(rot=45)), panel = function(x, ...) { panel.barchart(x, ...) panel.xyplot(x,SN

[R] Two variables on one lattice barchart

2009-03-29 Thread jimdare
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(Ca