[R] Find x value of density plots

Bert Gunter gunter.berton at gene.com
Tue Dec 6 19:47:42 CET 2011


?density
... and pay attention to the "Value" details.

-- Bert

On Tue, Dec 6, 2011 at 10:42 AM, Pavan G <pavan.namd at gmail.com> wrote:
> Hello All,
>
> How do I find the x value at max density for say, this plot
> plot(density(rnorm(1000)))
>
>
> Thank you,
> P
>
>        [[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.



-- 

Bert Gunter
Genentech Nonclinical Biostatistics

Internal Contact Info:
Phone: 467-7374
Website:
http://pharmadevelopment.roche.com/index/pdb/pdb-functional-groups/pdb-biostatistics/pdb-ncb-home.htm



More information about the R-help mailing list