René J.V. Bertin
2009-Jan-08 17:25 UTC
[R] lattice question: independent per-row or per-column scaling?
Hello - and happy newyear to all of you! I've got some data that I'm plotting with bwplot, a 3x2x3 design where the observable decreases with the principle independent factor, but at different rates. I'd like to get lattice to impose not a single set of axes ranges identical for all panels, but ranges that are identical for each panel row or each column. Effects will stand out much better like that. I've looked through the documentation of the latest lattice version, but I don't see a way to achieve this with a simple argument passed to bwplot. Can it be done otherwise and if so, how? Thanks, Ren? Bertin
Deepayan Sarkar
2009-Jan-19 07:17 UTC
[R] lattice question: independent per-row or per-column scaling?
On 1/8/09, Ren? J.V. Bertin <rjvbertin at gmail.com> wrote:> Hello - and happy newyear to all of you! > > I've got some data that I'm plotting with bwplot, a 3x2x3 design where > the observable decreases with the principle independent factor, but at > different rates. > > I'd like to get lattice to impose not a single set of axes ranges > identical for all panels, but ranges that are identical for each panel > row or each column. Effects will stand out much better like that. > > I've looked through the documentation of the latest lattice version, > but I don't see a way to achieve this with a simple argument passed to > bwplot. Can it be done otherwise and if so, how?There is no built in way to do this. You could use scales="free" and provide explicit axis limits. -Deepayan
hadley wickham
2009-Jan-19 13:51 UTC
[R] lattice question: independent per-row or per-column scaling?
On Thu, Jan 8, 2009 at 11:25 AM, Ren? J.V. Bertin <rjvbertin at gmail.com> wrote:> Hello - and happy newyear to all of you! > > I've got some data that I'm plotting with bwplot, a 3x2x3 design where > the observable decreases with the principle independent factor, but at > different rates. > > I'd like to get lattice to impose not a single set of axes ranges > identical for all panels, but ranges that are identical for each panel > row or each column. Effects will stand out much better like that. > > I've looked through the documentation of the latest lattice version, > but I don't see a way to achieve this with a simple argument passed to > bwplot. Can it be done otherwise and if so, how?It's not lattice, but you can do this with ggplot2 - see the examples for http://had.co.nz/ggplot2/facet_grid.html Regards, Hadley -- http://had.co.nz/