mit-jp / mit-climate-data-viz

Plotting climate data for the MIT Joint Program on the Science and Policy of Global Change
https://cypressf.shinyapps.io/eppa-dashboard/
0 stars 0 forks source link

change graph style for percentile — thicker median #168

Closed cypressf closed 3 years ago

cypressf commented 3 years ago

Screen Shot 2021-04-29 at 16 05 08

I might consider using geom_ribbon to make a filled-in range of color for the percentile ranges.

holak commented 3 years ago

@cypressf that would be great. The figures in the Outlook Report look something like this: image With the thick line representing the median, the dashed lines the interquartile range (25th-75th percentiles) and the shaded area the 5th-95th percentiles)

cypressf commented 3 years ago

How's this look?

Screen Shot 2021-04-29 at 19 10 50

holak commented 3 years ago

Awesome!!

cypressf commented 3 years ago

Is it mathematically sound to say that the values in the 25th to 75th percentile have a 50% likelihood and the values from the 5th to 95th percentile have a 90% likelihood? I wanted to add a legend like so:

Screen Shot 2021-04-30 at 00 01 58
cypressf commented 3 years ago

Maybe "Confidence Interval" is the term I'm looking for, not "Likelihood"

cypressf commented 3 years ago

I'll close this, and if confidence interval is not the correct term, lmk and I can change the legend title.

Screen Shot 2021-04-30 at 01 07 01
holak commented 3 years ago

@cypressf "Confidence Interval" works, but is it too technical for general audiences? Other potential options: "Probability Range", "Probability Bounds", even "Likelihood" which less technically precise could work. Let's ask Sergey and Adam for their thoughts as well. Also would it be too long for the labels to be: "90% (5th-95th percentile)", "50% (25th-75th percentile)"? Maybe that's too much and not necessary? Finally, is there a way to also have a label for the black line as the median? I guess that gets tricky because median wouldn't fall under the same label heading as the probability bounds... maybe a reason to go with the more general "Likelihood"? Let's give it some more thought and circle back. I really like the shaded areas though.

holak commented 3 years ago

@cypressf the consensus was to change the legend title from "Confidence Interval" to "Likelihood Range"

cypressf commented 3 years ago

Cool. I'll rename it!