I\'m using ggplot as described here
ggplot
Smoothed density estimates
and entered in the R console
m <- ggplot(movies, aes(x = rating))
The suggested answers dont provide exactly the same results as geom_density. Why not draw a white line over the baseline?
geom_density
+ geom_hline(yintercept=0, colour="white", size=1)
This worked for me.