Skip to content

Commit 9172ccb

Browse files
committed
alpha for smooth fit is always 1
1 parent 283950b commit 9172ccb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

R/layers2traces.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ to_basic.GeomBoxplot <- function(data, prestats_data, layout, params, p, ...) {
141141
#' @export
142142
to_basic.GeomSmooth <- function(data, prestats_data, layout, params, p, ...) {
143143
dat <- prefix_class(data, "GeomPath")
144-
dat$alpha <- dat$alpha %||% params$alpha %||% 1
144+
# alpha for the path is always 1 (see GeomSmooth$draw_key)
145+
dat$alpha <- 1
145146
if (!identical(params$se, FALSE)) {
146147
dat2 <- prefix_class(ribbon_dat(data), c("GeomPolygon", "GeomSmooth"))
147148
dat2$colour <- NULL

0 commit comments

Comments
 (0)