Skip to content

Commit

Permalink
fix: plot error with paid_media_spends #1204
Browse files Browse the repository at this point in the history
- Minor fix and tested on dummy data locally. Works as expected.
  • Loading branch information
gufengzhou committed Jan 21, 2025
1 parent 7a0de39 commit 597fb1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R/DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: Robyn
Type: Package
Title: Semi-Automated Marketing Mix Modeling (MMM) from Meta Marketing Science
Version: 3.12.0.9003
Version: 3.12.0.9004
Authors@R: c(
person("Gufeng", "Zhou", , "[email protected]", c("cre", "aut")),
person("Igor", "Skokan", , "[email protected]", c("aut")),
Expand Down
4 changes: 2 additions & 2 deletions R/R/plots.R
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ robyn_plots <- function(
if (length(temp_all) > 0) {
xDecompAgg <- temp_all$xDecompAgg
dt_ridges <- xDecompAgg %>%
filter(.data$rn %in% InputCollect$paid_media_spends) %>%
filter(.data$rn %in% InputCollect$paid_media_vars) %>%
mutate(iteration = (.data$iterNG - 1) * OutputCollect$cores + .data$iterPar) %>%
select(variables = .data$rn, .data$roi_total, .data$iteration, .data$trial) %>%
arrange(.data$iteration, .data$variables)
Expand Down Expand Up @@ -317,7 +317,7 @@ robyn_onepagers <- function(

plotMediaShare <- filter(
xDecompAgg, .data$robynPareto == pf,
.data$rn %in% InputCollect$paid_media_spends
.data$rn %in% InputCollect$paid_media_vars
)
uniqueSol <- unique(plotMediaShare$solID)

Expand Down

0 comments on commit 597fb1a

Please sign in to comment.