[R] barchart in lattice
bernd.weiss at uni-koeln.de
Sun Nov 2 18:00:55 CET 2003
Am 2 Nov 2003 um 10:34 hat Deepayan Sarkar geschrieben:
> On Sunday 02 November 2003 04:17, Bernd Weiss wrote:
> > Dear all,
> > I have two factors 'country' and 'status' which I would like to plot via
> > barchart (lattice). 'status' consist of three different levels and should
> > be the grouping variable,
> the correct terminology would be 'conditioning' variable. Grouping variables
> distinguish data within a panel.
> > i.e. there should be drawn three different panels
> > and within each panel a barchart of 'country'.
> I'm not sure what that means. If you mean barchart of the frequency of
> occurrence of each country within each 'status', then you could try
> foo <- read.table("meta.txt")
> barchart(daten.COUNTRY ~ Freq| daten.STATUS,
> data = as.data.frame(table(foo)),
> origin = 0)
That's it! Thank you very much for your help!
More information about the R-help