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 344 forks source link

Plotting the response curves of the Robyn Allocator Output #1136

Open apoorvabc opened 1 week ago

apoorvabc commented 1 week ago

Hello Team,

I am tying to plot the response curves for the allocation period and using the piece of code below. I am assuming this will be for the entire duration of the allocation period and not just per week as shown in the image below. What is the best way to capture the initial and bounded values shown on the plot? Also, is there a way I can extract these values separately to plot two different graphs?

    scurve <- list()
    scurve[["data"]] <- AllocatorCollect$plots$p3$data
    plot_data <- scurve[["data"]][, c("channel", "spend", "total_response")]

3_531_2_reallocated_best_roas (5)