mtcars <- mtcars
p <- ggplot(mtcars, aes(x=disp)) + geom_density()
ggplotly(p)
ggplot2::geom_density() used to include the outline, but removed it during this release:
Changelog • ggplot2 (tidyverse.org)
I don't know how frequently the ggplotly implementation tracks changes.
