@@ -162,6 +162,7 @@ GeomViolin <- ggproto("GeomViolin", Geom,
162
162
# Needed for coord_polar and such
163
163
newdata <- vec_rbind0(newdata , newdata [1 ,])
164
164
newdata <- flip_data(newdata , flipped_aes )
165
+ params <- filter_args(list (... ), GeomPolygon $ draw_panel )
165
166
166
167
# Draw quantiles if requested, so long as there is non-zero y range
167
168
if (length(draw_quantiles ) > 0 & ! scales :: zero_range(range(data $ y ))) {
@@ -183,15 +184,15 @@ GeomViolin <- ggproto("GeomViolin", Geom,
183
184
quantile_grob <- if (nrow(both ) == 0 ) {
184
185
zeroGrob()
185
186
} else {
186
- GeomPath $ draw_panel(both , ... )
187
+ inject( GeomPath $ draw_panel(both , !!! params ) )
187
188
}
188
189
189
190
ggname(" geom_violin" , grobTree(
190
- GeomPolygon $ draw_panel(newdata , ... ),
191
+ inject( GeomPolygon $ draw_panel(newdata , !!! params ) ),
191
192
quantile_grob )
192
193
)
193
194
} else {
194
- ggname(" geom_violin" , GeomPolygon $ draw_panel(newdata , ... ))
195
+ ggname(" geom_violin" , inject( GeomPolygon $ draw_panel(newdata , !!! params ) ))
195
196
}
196
197
},
197
198
0 commit comments