title: Kernel estimation of log-pdf
body: <p>It's easy to plot a kernel estimate for the probability density function (pdf) of a random variable given an observation vector via:</p>
  
  <pre><code>plot(density(x))
  </code></pre>
  
  <p>I would like to do the same but for the log-pdf (log of the probability density function).</p>