Skip to content
Prev 200522 / 398506 Next

lattice barchart

I have a data frame with two factors and want to create panel barcharts with
one factor defining the panels and the other the vertical categories by
which I can count the rows of data in each combination of factors. How do I
do this?

I have been trying to use barchart(~factor1|factor2) but it does not give
the panels as I want them.

The data looks like this:

Factor1    Factor2
A             y
B             y
A             x
B             y   
C             x
etc...