Hello list, I am interested in plotting a series of barcharts (package lattice) with several metrics. Instead of calling barchart many times to call each parameter, is there an approach to calling several parameters at once? An alternative might be a barplot for a primary parameter and then adding a line or second axis for a second parameter. Thanks in advance -- Steve Friedman Center for Global Change and Earth Observations Michigan State University Envisioning Ecosystem Decisions [[alternative HTML version deleted]]
Is this what you have in mind? tmp <- data.frame(id=1:10, y1=sample(10), y2=sample(10)) tmp2 <- cbind(id=c(tmp$id, tmp$id), stack(tmp[,2:3])) barchart(values ~ id | ind, data=tmp2) If not, send an equally trivial example of what you want to the list and someone will send you an optimized set of statements for it.