s6juncheng / ggpval

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

t.test parameters #2

Closed alienzj closed 7 years ago

alienzj commented 7 years ago

Hello! for example:

plane_p <- add_pval(plane_p, pairs = list(c(1, 2)), test = "t.test")

How should I specify the parameters used by t.test? I want to specify

t.test(..., alternative = "less")

Thanks very much!

s6juncheng commented 7 years ago

Hi, thanks for raising out the issue, indeed this was missing from the previous version, I added this feature. Please install the new version from github.
devtools::install_github("s6juncheng/ggpval") plane_p <- add_pval(plane_p, pairs = list(c(1, 2)), test = "t.test", alternative = "less")