Skip to content
Prev 25314 / 398502 Next

evaluating density objects

Thanks for all the suggestions!
The point is that I want to plot many densities in one graph. I can do
that with R using par(new=T), but I cannot print those graphs. 

Thus, I wonder if I could also apply (lapply) density(...) to a vector
of x-values, to get a my different density functions evaluated all at
the same x. Then, I should be able to write a file that looks like:

X dens1(X) dens2(X) ...

Can anyone help?

Cheers,
Hinnerk

 

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