facebookexperimental / Robyn

Robyn is an experimental, AI/ML-powered and open sourced Marketing Mix Modeling (MMM) package from Meta Marketing Science. Our mission is to democratise modeling knowledge, inspire the industry through innovation, reduce human bias in the modeling process & build a strong open source marketing science community.
https://facebookexperimental.github.io/Robyn/
MIT License
1.13k stars 336 forks source link

About the response curves mean spend by channle graph legend #838

Closed taikis1991 closed 9 months ago

taikis1991 commented 11 months ago

I've printed Robyn's output below.

OutputCollect <- robyn_outputs( InputCollect, OutputModels, pareto_fronts = 3, csv_out = "pareto", clusters = TRUE, plot_pareto = TRUE, plot_folder = robyn_object )

However, in the response curves mean spend by channle graph, a legend was displayed on the graph in the output of 3.10.4. It is no longer displayed in 3.7.1.

For 3.10.4 old

For 3.7.1 new

I would like to know how to solve this problem because without a legend, I cannot tell which line corresponds to which medium.

gufengzhou commented 11 months ago

Please use the latest version.

taikis1991 commented 11 months ago

thank you. I tried with the latest code(https://github.com/facebookexperimental/Robyn/blob/main/demo/demo.R) below, This output was obtained, and as expected, there was no legend. Is it done differently?

1_281_4

gufengzhou commented 11 months ago

sorry for the late reply. there's a bug also reported here and we're lagging behind due to resource constraints. we definitely plan to fix this in Nov. FYI @michellegrushkometa

michellegrushkometa commented 10 months ago

Hey @taikis1991, I am currently looking into the issue. As a workaround, can you please try running myOnePager[[select_model]]$patches$plots[[4]] for your selected model? This will show the plot with the legend