Re: [R] Lattice: reversing order of panel placement in conditional histograms

2005-07-25 Thread Deepayan Sarkar
On 7/23/05, Prof Brian Ripley [EMAIL PROTECTED] wrote: From what I understand, you want to set up a factor with the levels reversed. It is not that `5 is larger than 1', but that you created a factor with the levels in alphabetic order. Lattice plots in the order of the levels. Something

Re: [R] Lattice: reversing order of panel placement in conditional histograms

2005-07-23 Thread Prof Brian Ripley
From what I understand, you want to set up a factor with the levels reversed. It is not that `5 is larger than 1', but that you created a factor with the levels in alphabetic order. Lattice plots in the order of the levels. Something like f - factor(f, levels=rev(levels(f))) will do this.

[R] Lattice: reversing order of panel placement in conditional histograms

2005-07-22 Thread Sam Ferguson
Hi R-people, I have a question about lattice in general, and histogram specfically. How do you control the ordering of factors that controls the placement of the conditional panels. I have a dataset with factors that go 'Q1','Q2',Q3','Q5' and of course I want the plot to place Question Q1 at