[R] correction for density plot question

Uwe Ligges ligges at statistik.tu-dortmund.de
Sun Feb 1 16:55:54 CET 2009



gregor rolshausen wrote:
> sorry!
> 
> I ment to plot the probability vs. the values of course. not the 
> probability vs. the density...

You have plotted the histogram, i.e. the empirical version of the 
density. If you want to plot a (empirical?) probability function, you 
might want to look at ?ecdf

Uwe Ligges


> cheers,gregor
> 
> ______________________________________________
> 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.




More information about the R-help mailing list