aphalo / ggpmisc

R package ggpmisc is an extension to ggplot2 and the Grammar of Graphics
https://docs.r4photobiology.info/ggpmisc
92 stars 6 forks source link

Simultaneous confidence intervals #45

Open aphalo opened 11 months ago

aphalo commented 11 months ago

A statistic could be rather easily implemented by editing the code of stat_multcomp().

aphalo commented 8 months ago

Closed by mistake.

markbneal commented 8 months ago

For clarity, would this be a confidence interval for the delta between groups?

aphalo commented 8 months ago

I haven't really thought the details. What would be most useful? I have been playing with the idea in my head, as I find the p-value labeling using horizontal segments a bit counterintuitive. Wouldn't it be better to have a vertical bar highlighting the actual difference along the y-axis, and somehow highlight its confidence? I raised this issue mostly to come back at some time to this.

aphalo commented 3 months ago

An interesting alternative way of plotting is described and implement in 'emmeans' under the name "Pairwise P-value plots".