Re: [R] Barplot/Histogram (lattice)

2010-01-30 Thread Deepayan Sarkar
On Thu, Jan 28, 2010 at 8:59 PM, Santosh wrote: > Dear Rxperts.. > > what settings in barplot and histogram do I use, to show bars in an > monotonously increasing or decreasing order of the frequency of a > categorical variable? See ?reorder. Typical usage would be (in lattice) barchart(y ~ reor

[R] Barplot/Histogram (lattice)

2010-01-28 Thread Santosh
Dear Rxperts.. what settings in barplot and histogram do I use, to show bars in an monotonously increasing or decreasing order of the frequency of a categorical variable? an example is provided below.. histogram(~factor(sample(letters,200,rep=T))) I was able to get it in 3 - 4 steps.. l a1 <- s