[R] How to overlap two density plots?
David Winsemius
dwinsemius at comcast.net
Fri Apr 25 14:11:12 CEST 2008
"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?
>
>
>
>
More information about the R-help
mailing list