[R] yaxis for plot(density(...))

Gabor Grothendieck ggrothendieck at gmail.com
Thu Mar 30 07:13:36 CEST 2006


Probabilities can't be greater than 1 but densities can.

On 3/29/06, Taka Matzmoto <sell_mirage_ne at hotmail.com> wrote:
> Hi R users
> I have a question for yaxis for plot(density(...)).
>
> plot(density(rnorm(1000000,.25,0.0701361)),xlim=c(-.5,1),col="red",xlab="",main="")
>
> I expected that yaxis is a probabilty (from 0 to 1) but it wasn't
>
> I got 1 to 5 or 6 on yaxis.
>
> How do I interpret yaxis values ?
>
> Thanks
>
> TM
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>




More information about the R-help mailing list