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

Jim Lemon jim at bitwrit.com.au
Wed May 4 09:22:07 CEST 2011


On 05/04/2011 03:35 AM, Caitlin wrote:
> 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
>
Hi Caitlin,

barp(caitlinsdata[,1],names.arg=caitlinsdata[,2]

Jim



More information about the R-help mailing list