Re: [R] question about sm.density

From: Francisco J. Zagmutt <gerifalte28_at_hotmail.com>
Date: Sat 29 Oct 2005 - 06:39:51 EST


Please read the documentation before posting a question. If you read the documentation for sm.density you will see that the argument props will do what you want. i.e.

y <- cbind(rnorm(50), rnorm(50))
sm.density(y, display = "slice", props=95)

Regards

Francisco

>From: Cunningham Kerry <kerryrekky@yahoo.com>
>To: r-help@stat.math.ethz.ch
>Subject: [R] question about sm.density
>Date: Thu, 27 Oct 2005 18:47:28 -0700 (PDT)
>
>How can I draw a 95% contour in sm.density?
>
>For example,
>
>y <- cbind(rnorm(50), rnorm(50))
> sm.density(y, display = "slice")
>
>will give 25%, 50% and 75% contours automatically, but
>no reference on other values.
>
>______________________________________________
>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



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 Received on Sat Oct 29 06:46:21 2005

This archive was generated by hypermail 2.1.8 : Sat 29 Oct 2005 - 09:42:22 EST