Skip to content

Commit 0a31f9b

Browse files
mnbramhadley
authored andcommitted
Don't use alpha for violin quantiles (#1726)
1 parent 3b2fa44 commit 0a31f9b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

NEWS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@
7878
* A warning is now issued when a scale transformation introduces infinite
7979
values in a scale (#1696)
8080

81+
* Quantile lines in geom_violin() are no longer affected by the alpha aesthetic
82+
(@mnbram, #1714)
83+
8184
# ggplot2 2.1.0
8285

8386
## New features

R/geom-violin.r

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ GeomViolin <- ggproto("GeomViolin", Geom,
137137
setdiff(names(data), c("x", "y")),
138138
drop = FALSE
139139
]
140+
aesthetics$alpha <- rep(1, nrow(quantiles))
140141
both <- cbind(quantiles, aesthetics)
141142
quantile_grob <- GeomPath$draw_panel(both, ...)
142143

0 commit comments

Comments
 (0)