Re: [R] Constructing a histogram with words as labels as height as frequency?

From: Greg Snow <Greg.Snow_at_imail.org>
Date: Tue, 03 May 2011 11:52:54 -0600

?barplot

-- 
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow_at_imail.org
801.408.8111



> -----Original Message-----
> From: r-help-bounces_at_r-project.org [mailto:r-help-bounces_at_r-
> project.org] On Behalf Of Caitlin
> Sent: Tuesday, May 03, 2011 11:36 AM
> To: r-help_at_r-project.org
> Subject: [R] Constructing a histogram with words as labels as height as
> frequency?
>
> Hi all.
>
> I need to construct a plot showing words on the x-axis and how many
> times
> each word was given as a verbal response on the y-axis as solid bar
> (frequency). Is there a convenient function to do this in R? I
> considered
> hist(), but I'm not sure how to construct the text file. Example:
>
> apple, 2
> pear, 14
> house, 1
> beach, 5
> computer, 15
>
> Thanks,
>
> ~Caitlin
>
> [[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.
______________________________________________ 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.
Received on Thu 05 May 2011 - 06:25:04 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 05 May 2011 - 07:00:05 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive