Re: [R] Non-Numeric Histograms

From: Jim Lemon <jim_at_bitwrit.com.au>
Date: Mon 10 Jul 2006 - 04:12:42 EST

justin rapp wrote:
> I have a dataset with a variable that is non-numeric. I was wondering
> if there is an easy way in R to create a bar graph that will tell me
> how many of each level of this non-numeric variable are in the overall
> dataset.
>
> Specifically, if my variable is LETTER, and I have A, B,C, D, E, F and
> I want to find out how many of each letter there are, what is the
> easiest way to do this in R and use the information to make a plot?
>
Hi Justin,

You might want to take a look at freq and plot.freq in the plotrix package.

JIm



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sun Jul 09 14:12:09 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sun 09 Jul 2006 - 16:15:29 EST.

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