Re: [R] How to overlap two density plots?

From: David Winsemius <dwinsemius_at_comcast.net>
Date: Fri, 25 Apr 2008 12:11:12 +0000 (UTC)

"Emre Unal" <emre.unal_at_gmail.com> wrote in news:10a006e80804250057y15067d0m49d9cca11519bb4f_at_mail.gmail.com:

> 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))

Instead:
lines(density(B))

-- 
David Winsemius




> plot(density(B))
>
> Regards,
> Emre
>
>
> P.S. There's a overlap.density function in package DAAG
> Is there another way to do this?
>
>
>
>
______________________________________________ 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 - 12:16:57 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 Fri 25 Apr 2008 - 12:30:30 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