[R] Weird densityplot behaviour

Geoff Wright geoffwright at sympatico.ca
Sat Aug 10 18:25:25 CEST 2002


When I do: 
rx<-rnorm(500)
densityplot(rx)

I get something that looks reasonable.

However, when I do:
rx<-rnorm(5)
densityplot(rx)

I get strange results sometimes...
For example, if rx = c(1,1,1,1,2), then the resulting plot shows marginal 
densities greater than 1.  I must be overlooking something.

Thanks.
geoff

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list