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),
Hello,
Maybe the following will help.
layout(matrix(c(1,2,3,0,4,5,6), c(1,6)))
Note the zero. It reserves space but no graph is put there.
There is an error in your code, you plot twice guns/gender. I think the
second is meant to be guns/age.
Also, you can do those 6 barplot instructions lik
Simon,
I think this is what you are looking for.
###Random Data
crime <- sample(c('agree' ,'disagree'), replace=TRUE, size=100)
guns <- sample(c('agree','disagree'), replace=TRUE, size=100)
climate <- sample(c('agree', 'disagree'), replace=TRUE, size=100)
gender <- sample(c('male','both' ,'female
Hello: I need to create a six barplots from data that looks pretty close to
what appears below. There are two grouping variables (age and gender) and three
dependent variables for each grouping variables. I'm not really familiar with
trellis graphics, perhaps there is something that can do what
4 matches
Mail list logo