Skip to content
Prev 316592 / 398506 Next

Help with multiple barplots

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:
Message-ID: <201301312056.r0VKua8k003590@mail13.tpg.com.au>
In-Reply-To: <CAGx1TMCMgu1CiPdKDWHN+NJsA0M9i6nwH7tVw=gmf9_9knfdFw@mail.g mail.com>