Skip to content

Simple proportion barchart

4 messages · WillP, Dieter Menne

#
Hi there,
I am trying to create barcharts of the proportion of people who do art by
covariate.
I have data like this:
art        sex
0           1
1           0
0           1
0           0
1           1

...all I want is to create a barchart of proportions who have 1 for art by
sex.
How do I do this?

Thanks
Will
#
WillP wrote:
Homework hint: table

Dieter
#
WillP wrote:
Also have look at ctab in package catspec.

Dieter