[R] evaluating density objects

Deepayan Sarkar deepayan at stat.wisc.edu
Thu Nov 14 18:05:45 CET 2002


On Thursday 14 November 2002 06:11 am, Hinnerk Boriss wrote:
> Hi!
>
> Is there a way to evaluate "density" objects other than with plot, so
> that I can write data points to a file and plot them with gnuplot? Can
> anyone help?

>From help(density) :

Value:

     If `give.Rkern' is true, the number R(K), otherwise an object with
     class `"density"' whose underlying structure is a list containing
     the following components.

       x: the `n' coordinates of the points where the density is
          estimated.

       y: the estimated density values.

      ...

That should be enough, shouldn't it ?

Deepayan

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