Message-ID: <17DC9636-7A16-4674-9FFE-F4FECA4B24E2@gmail.com>
Date: 2010-12-01T19:54:37Z
From: Andrew Miles
Subject: draw categorical histogram
In-Reply-To: <AANLkTikjDC3NFp4u3JuQJVBv5pyH5Jhf_cQPZa4ex59o@mail.gmail.com>
Try:
plot (myCatVariable)
Andrew Miles
Department of Sociology
Duke University
On Dec 1, 2010, at 2:51 PM, phoebe kong wrote:
> Hi,
>
> Can someone tell me how to draw a histogram for the following summary?
>
> Richard Minnie Albert Helen Joe Kingston
> 12 33 56 67 15 66
>
> The summary tell that Richard has occurrence 12, Minnie has
> occurrence 33,
> and so on. I would like to view this summary in a histogram.
>
> I want the X-axis be the person name (Richard, Minnie, ....), Y-axis
> be the
> frequency (12, 33....).
> How can I make the histogram has 6 bars, each bar was named as
> Richard,
> Minnie, ... , Kingston?
>
> Thanks,
> Phoebe
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.