[R] Histogram of data with categorical varialbe

From: Alexandre Depire <depire_at_gmail.com>
Date: Fri 15 Sep 2006 - 14:45:31 GMT


Hello,
I have the following data:
Km Sex
250 1
300 2
290 2
600 1
450 2
650 1
.........

I would like to obtain one histogram where the data (or the part) of each sex is visible, it is like cumulative histogram or spinogram. To be more comprehensible, i would like to know if the following graph is obtainable easily in R. It is the first graph on page 5 in the following document http://jasp.ism.ac.jp/~nakanoj/workshop04/TalkII.pdf

        [[alternative HTML version deleted]]



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 and provide commented, minimal, self-contained, reproducible code. Received on Sat Sep 16 00:48:55 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 Fri 15 Sep 2006 - 16:30:24 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.