Skip to content

Commit

Permalink
set background of hover info of add_fan() to the fillcolor
Browse files Browse the repository at this point in the history
  • Loading branch information
ThierryO committed Feb 23, 2024
1 parent ac3a5b6 commit b7da204
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/add_fan.R
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ add_fan <- function(
dots$legendgroup <- name
}
for (prob in seq(max_prob, 1e-6, by = -step)) {
dots$hoverinfo <- ifelse(prob < max_prob, "none", hoverinfo)
dots$hoverinfo <- hoverinfo
dots$x <- x
dots$text <- text
dots$ymin <- ~lcl
Expand All @@ -67,6 +67,7 @@ add_fan <- function(
dots$inherit <- TRUE
dots$line <- list(width = 0)
dots$fillcolor <- fillcolor
dots$color <- I(fillcolor)
dots$p <- p
dots$data <- error_ribbon(
data = data, y = y, sd = sd, prob = prob, link = link
Expand Down

0 comments on commit b7da204

Please sign in to comment.