density plot of simulated exponential distributed data
I tried logspline function using a lower bound 0 for my data, it works like a charm. When the I changed the xlim only positive part, the vertical line was also gone. That's exactly what I expected. Thanks. -JJ
Greg Snow wrote:
You might want to use the logspline package instead of the density function, it allows you to specify bounds on a distribution.