Closed ltierney closed 9 months ago
Thanks for the report! The quantiles are based on the density estimation, not on the actual data. As #4120 proposes to change this to the actual data, I'll consider this issue a duplicate to keep discussion in one place.
In R 4.3.2 with
ggplot2
3.4.4 the plot produced by this code shows a discrepancy between the quantiles used bygeom_violin
and the ones used bygeom_boxplot
as well as the ones returned byquantile()
:Using
trim = FALSE
changes the locations a little but the discrepancy remains.