Skip to content

Help with multiple barplots

1 message · Duncan Mackay

#
Hi

Another possibility following on from Rich's example and to 
demonstrate what lattice can do with  the latticeExtra package

library(lattice)
library(latticeExtra)
useOuterStrips(
barchart(Freq ~ Var1 | topic + category, groups=Var2, data=opinion,
          stack=TRUE,
          layout=c(3,2),
          scales=list(x=list(relation="free")))
)

Regards

Duncan

Duncan Mackay
Department of Agronomy and Soil Science
University of New England
Armidale NSW 2351
Email: home: mackay at northnet.com.au
At 02:29 1/02/2013, you wrote: