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.16k stars 346 forks source link

Robyn one pager: generate_spend_effect_comparison plot implementation #1122

Closed sumalreddy17 closed 2 weeks ago

sumalreddy17 commented 2 weeks ago

Add spend vs effect share comparison plot

Implements dual-axis visualization comparing spend and effect shares Matches R implementation with:

Stacked bar chart for spend/effect percentages Secondary axis for performance metrics Proper color schemes and formatting

Supports both standalone and subplot integration Handles automatic scaling and layout

Testing:

Screenshot 2024-11-07 at 11 01 55 AM

Graph plot by R code

Screenshot 2024-11-06 at 2 53 35 PM