<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:14pt"><div><span>Dear Sarah</span></div><div style="color: rgb(0, 0, 0); font-size: 19px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span>Thank you for your response. I have attached the data that I'm using. I noticed that no estimate and eval.points are generated...Would you please take a look at it? </span></div><div style="color: rgb(0, 0, 0); font-size: 19px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span>It creates a plot in R environment but the pdf file doesn't work.</span></div><div style="color: rgb(0, 0, 0); font-size: 19px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica,
 Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 19px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span>Appreciate your help,</span></div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 14pt;"> <div style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt;"> <div dir="ltr"> <font size="2" face="Arial"> On Thursday, July 24, 2014 12:35 PM, Sarah Goslee <sarah.goslee@gmail.com> wrote:<br> </font> </div>  <br><br> <div class="y_msg_container">Hi,<br clear="none"><div class="yqt6439711014" id="yqtfd04503"><br clear="none">On Thu,
 Jul 24, 2014 at 1:22 PM, Ferra Xu <<a shape="rect" ymailto="mailto:ferra.xu@yahoo.com" href="mailto:ferra.xu@yahoo.com">ferra.xu@yahoo.com</a>> wrote:<br clear="none">> Hello all,<br clear="none">> In order to find the kernel smoothing density function of a 3 dimensional data-set, I wrote this code in R:<br clear="none">> library(ks)defect <-read.table(file.choose(),sep=",")hat <-kde(defect)pdf("SampleGraph.pdf")plot(hat,drawpoints=TRUE)dev.off()<br clear="none">> But I have problem in interpretation of the result..I don't see the estimated values for density function (I need to have the values of f to use it in another code). The other problem is that the pdf file is not created correctly..Although the plot is created in R window, when I want to open the pdf file, it says:There was an error opening this document. This file cannot be opened because it has no pages.</div><br clear="none">>        
 [[alternative HTML version deleted]]<br clear="none"><br clear="none"><br clear="none">See why you shouldn't post HTML to this list?<br clear="none"><br clear="none">Trying to parse that, I see that I can't run your example because no<br clear="none">data are provided (dput() is a good function to know).<br clear="none"><br clear="none">When I run the example code given in ?kde it works as expected. Does<br clear="none">your plot command create a plot on other devices, like the default for<br clear="none">your OS? Does the example code in ?kde work when you run it? Does it<br clear="none">create a plot?<br clear="none"><br clear="none">As for the estimated values, did you carefully read the Value section<br clear="none">of the help file?<br clear="none"><br clear="none">     A kernel density estimate is an object of class ‘kde’ which is a<br clear="none">     list with fields:<br clear="none"><br clear="none">     
  x: data points - same as input<br clear="none"><br clear="none">eval.points: points at which the estimate is evaluated<br clear="none"><br clear="none">estimate: density estimate at ‘eval.points’<br clear="none"><br clear="none">If this density estimate is not the estimate you are looking for,<br clear="none">you'll need to be more specific.<br clear="none"><br clear="none">Sarah<br clear="none"><br clear="none">-- <br clear="none">Sarah Goslee<br clear="none"><a shape="rect" href="http://www.functionaldiversity.org/" target="_blank">http://www.functionaldiversity.org</a><br><br></div>  </div> </div>  </div> </div></body></html>