Sorry, if this question is trivial but I see no solution: I've been using the density() function frequently, always without troubles but now I work with some data set - lets call it tab - with (many) relatively small values and suddenly density(tab) gives something like absolute frequencies - any ideas what I did wrong? 
(Note: Also hist(tab, freq = FALSE) gives something weird for tab.)
Remark: summary(tab) gives:
  Min. /   1st Qu.  /   Median   /    Mean  /   3rd Qu.  /     Max. 
-0.0042810  /0.0002679 / 0.0011750 / 0.0071690 / 0.0049510  /0.5839000 
I'd also be very grateful for any general hint, under which circumstances density() gives no relative frequencies as y-values.
 
     
    ![degenerate density plot[1]](../../images/3824880766.webp) The density values sure look like they could be confused for frequencies, but they are not. Of course, if I remove the outlier then the estimated density function gets nicely bell-shaped:
The density values sure look like they could be confused for frequencies, but they are not. Of course, if I remove the outlier then the estimated density function gets nicely bell-shaped:
