[R] Histogram classwise

Greg Snow 538280 at gmail.com
Thu Apr 5 22:00:30 CEST 2012


You might want to look at the lattice or ggplot2 packages, both of
which can create a graph for each of the classes.

On Tue, Apr 3, 2012 at 6:20 AM, arunkumar1111 <akpbond007 at gmail.com> wrote:
> Hi
> I have a data class wise. I want to create a histogram class wise without
> using for loop as it takes a long time
> my data looks like this
>
> x       class
> 27      1
> 93      3
> 65      5
> 1       2
> 69      5
> 2       1
> 92      4
> 49      5
> 55      4
> 46      1
> 51      3
> 100     4
>
>
>
>
> -----
> Thanks in Advance
>        Arun
> --
> View this message in context: http://r.789695.n4.nabble.com/Histogram-classwise-tp4528624p4528624.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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.



-- 
Gregory (Greg) L. Snow Ph.D.
538280 at gmail.com



More information about the R-help mailing list