s6juncheng / ggpval

Add statistical test or annotation to your ggplot2 plots,
https://s6juncheng.github.io/ggpval/
45 stars 9 forks source link

use correct annotation when faceting #9

Closed c-mertes closed 4 years ago

c-mertes commented 4 years ago

currently when using a facet with annotation it only uses the first one from the list.

add_pval(plt, pairs = list(c(1, 2)), annotation = list("Awesome1", "Awesome2"))

results in this figure:

image

Where Awesome2 is missing.

s6juncheng commented 4 years ago

Thanks Chris, looks great! Merged the PR.