One possibility is to use stat_density() with geom="line" . Only in this case there will be only the top lines.
ggplot(iris)+ stat_density(aes(x=Sepal.Width, colour=Species), geom="line",position="identity")
If you also need the entire area (all lines), you can combine geom_density() with show_guide=FALSE (to remove the legend) and stat_density() , than adding a legend with horizontal lines only.
ggplot(iris) + geom_density(aes(x=Sepal.Width, colour=Species),show_guide=FALSE)+ stat_density(aes(x=Sepal.Width, colour=Species), geom="line",position="identity")

Didzis elferts
source share