[R] How to overlap two density plots?

From: Emre Unal <emre.unal_at_gmail.com>
Date: Fri, 25 Apr 2008 10:57:27 +0300

Hi,

How can I overlap two density plots?

A <- c(8,10,10,11,11,11,12,12,12,12,11,11,11,10,10,7) B <- c(11,13,13,14,14,14,15,15,15,15,14,14,14,13,13,10)

plot(density(A))
plot(density(B))

Regards,
Emre

P.S. There's a overlap.density function in package DAAG

        Is there another way to do this?

-- 
---
Emre ÜNAL
http://www.geocities.com/dusemre

	[[alternative HTML version deleted]]


______________________________________________ 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.

Received on Fri 25 Apr 2008 - 08:00:54 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 26 Apr 2008 - 12:30:31 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.

list of date sections of archive