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 <[EMAIL PROTECTED]> >To: [email protected] >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. > >______________________________________________ >[email protected] mailing list >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide! >http://www.R-project.org/posting-guide.html ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
