Closed
Description
Hi !
I was using ggplot2
version 3.5.2.9000 for geom_density
plotting and noticed a change in the default behavior (by default a horizontal line is plotted underneath). 3.5.2 vs 3.5.2.9000 is shown below:
https://ggplot2.tidyverse.org/dev/reference/geom_density.html

https://ggplot2.tidyverse.org/reference/geom_density.html
3.5.2.9000 version, the default value is: both
geom_density(
mapping = NULL,
data = NULL,
stat = "density",
position = "identity",
...,
lineend = "butt",
linejoin = "round",
linemitre = 10,
outline.type = "both",
na.rm = FALSE,
show.legend = NA,
inherit.aes = TRUE
)
I have a feeling the change started in this neighborhood:
a7371db#diff-df3d6442fc530b8506c6e81d1b8b30a4abc665d334c2c86afe5be60611656770
GeomDensity <- ggproto(
"GeomDensity", GeomArea,
default_aes = aes(
colour = from_theme(colour %||% ink),
fill = from_theme(fill %||% NA),
weight = 1,
alpha = NA,
linewidth = from_theme(borderwidth),
linetype = from_theme(bordertype)
)
)
I'm not sure if the change was made intentionally or if it was an unintentional mistake, if it was an intentional change, please feel free to close this issue. hopefully I didn't bring too many extraneous interruptions.