Hi,

I apologise if this sounds like a really simple problem.  I have a
time-series data set with two columns of data: Catch and TACC.  I want Catch
plotted as a barchart and TACC plotted on the same graph as a series of
points with an overlaying a line.  I have created the code for a barchart
using the Catch data but I can't seem to figure out how to add the TACC data
as a line.  Can someone please enlighten me?

Regards,
James

Barchart code:

Schart<-barchart(Catch~Year,data=SNA,
                scales=list(col = "black", tck = c(1, 0),x=list(rot=45)),
                par.settings = list(axis.line = list(col = "transparent")),
  axis = function(side, ...) { 
            if (side == "left") 
                 grid.lines(x = c(0, 0), y = c(0, 1), 
                            default.units = "npc") 
            else if (side == "bottom") 
                 grid.lines(x = c(0, 1), y = c(0, 0), 
                            default.units = "npc")
                        
            axis.default(side = side, ...) 
        }
)
-- 
View this message in context: 
http://www.nabble.com/Trellis-barchart-help-tp22733771p22733771.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to