mjskay / tidybayes

Bayesian analysis + tidy data + geoms (R package)
http://mjskay.github.io/tidybayes
GNU General Public License v3.0
725 stars 59 forks source link

Add example of gradient CCDF plots to slabinterval vignette #209

Closed mjskay closed 5 years ago

mjskay commented 5 years ago

It's a relatively straightforward re-use of ccdfinterval:

df %>%
  ggplot(aes(x = group, y = value, fill = subgroup)) +
  stat_ccdfinterval(aes(thickness = 1, slab_alpha = stat(f)), position = "dodge") +
  ggtitle("stat_ccdfinterval(position = 'dodge')") 

image

h/t to @Raoul-Kima for suggesting it