Closed Rohit-Satyam closed 4 years ago
Hey Rohit,
unfortunately it is difficult to calculate the exact positions of boxplots with position = "dodge"
. Please see the second example here.
The function fails because geom_signif()
searches for "E"
and "P"
on the x-axis, but cannot find them.
You could set aes(x = paste0(Tissuetype, "_", variable), y = value)
and then making a list with the correct comparison: eg. geom_signif(comparisons = list(c("insua_E", "insula_P"))
.
Btw. ggsignif does not support rotated boxplots, so you will need to put the continuous variable on the y axis and the discrete ones on the x-axis.
I hope this is helpful. I will close this issue, but feel free to comment or re-open if I missed something.
Best, Constantin
. The file has been attached here brain.zip
I was trying to add significance bar for each EP pair in every tissue type using the following code I used the following code:
However it throws the following warnings:
Can someone help me understand what's wrong with defining the function?