Re: [R] plotting question

From: Richard M. Heiberger <>
Date: Tue 19 Sep 2006 - 21:05:23 GMT

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. mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Wed Sep 20 07:12:25 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 19 Sep 2006 - 21:30:16 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.