Vielen Dank! On Tue, Dec 6, 2011 at 1:48 PM, Duncan Murdoch <murdoch.dun...@gmail.com>wrote:
> On 06/12/2011 1:42 PM, Pavan G wrote: > >> Hello All, >> >> How do I find the x value at max density for say, this plot >> plot(density(rnorm(1000))) >> > > d <- density(rnorm(1000)) > plot(d) > > abline(v=d$x[which.max(d$y)]) > > Duncan Murdoch > [[alternative HTML version deleted]] ______________________________________________ R-help@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.