[R] Multiple density curves

From: Davendra Sohal <dsohal_at_gmail.com>
Date: Fri 11 Aug 2006 - 02:07:21 EST


I am new to R...a recent convert from SAS. I have a dataset that looks like this:

A 532.5 554.5
B 25.5 35.5

C    265.2    522.2
D    245.55    521.56
E    546.52    141.52
F    243.25    32.56
G    452.55    635.56

H 15.14 16.54
I 543.4 646.56
J 54.4 654.5
K    646.5    64.54
L    645.4    614.46
M    646.54    634.46

I want to make a histogram each for A1 and A2, with density curves, on the same plot so that I can see how they overlap.

Please let me know some simple code for this.

I looked at ldahist but it was complicated. Anything simpler?

Thanks a lot,

        [[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 Fri Aug 11 05:20:42 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 11 Aug 2006 - 22:18:00 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.