ggplot2: Add p-value to grouped box plots
问题 I am trying to add p_values to my graph using "stat_signif" function. The problem is that my boxplots are grouped box plots where I want to compare every 2 box plots of the same category and stat_signif function requires the x-axis values for comparing. This is my code: p <- ggplot(plot.data, aes(x = Element, y = Value, fill = Group)) + #Define the elements for plotting - group by "strandness". geom_boxplot(outlier.shape = NA, colour = "black") + scale_fill_manual(values = c("goldenrod",