Skip to content

Commit 765e4d8

Browse files
fix: one-pager decomp labels and warning (#1011) (CRAN v3.11.1)
1 parent 6afc50b commit 765e4d8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

R/DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: Robyn
22
Type: Package
33
Title: Semi-Automated Marketing Mix Modeling (MMM) from Meta Marketing Science
4-
Version: 3.11.0
4+
Version: 3.11.1
55
Authors@R: c(
66
person("Gufeng", "Zhou", , "[email protected]", c("aut")),
77
person("Bernardo", "Lares", , "[email protected]", c("cre","aut")),

R/R/plots.R

+2-1
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ robyn_onepagers <- function(
427427
sign = as.factor(ifelse(.data$xDecompPerc >= 0, "Positive", "Negative"))
428428
)
429429

430-
p2 <- ggplot(plotWaterfallLoop, aes(x = .data$id, fill = .data$sign)) +
430+
p2 <- ggplot(plotWaterfallLoop, aes(x = .data$rn, fill = .data$sign)) +
431431
geom_rect(aes(
432432
xmin = .data$id - 0.45, xmax = .data$id + 0.45,
433433
ymin = .data$end, ymax = .data$start
@@ -437,6 +437,7 @@ robyn_onepagers <- function(
437437
scale_fill_manual(values = c("Positive" = "#59B3D2", "Negative" = "#E5586E")) +
438438
theme_lares(background = "white", legend = "top") +
439439
geom_text(mapping = aes(
440+
x = .data$id,
440441
label = paste0(
441442
formatNum(.data$xDecompAgg, abbr = TRUE),
442443
"\n", round(.data$xDecompPerc * 100, 1), "%"

0 commit comments

Comments
 (0)