On 2011-03-19 19:15, Jim Silverton wrote:
Suupose I have
y<- rbeta(10000, 2, 5)
and I only want to see only the density plot from x = 0 to x = 1
How do I do this?

I'm not quite sure what you want, but this may be it:

 plot(density(y), xlim = c(0, 1), xaxs = 'i')

Peter Ehlers

______________________________________________
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.

Reply via email to