title: Adjusting position of stat_pvalue_manual
body: <p>I am trying to adjust the position of comparison bars with stat_pvalue_manual.
  TL/DR How do I fix plot p1?</p>
  <p>This is what I'm working with:</p>
  <pre><code>df &lt;- ToothGrowth
  grp&lt;-rep(c(&quot;a&quot;,&quot;b&quot;,&quot;c&quot;), 10)
  df$grp &lt;- grp
  library(tidyverse)
  library(rstatix)
  stat.test_len &lt;- df %&gt;%
    group_by(dose) %&gt;%
    dunn_test(len ~ supp)
  stat.test_len &lt;- stat.test_len %&gt;% add_xy_position()
  stat.test_len
  # A tibble: 3 x 14
  #   dose .y.   group1 group2    n1    n2 statistic       p   p.adj p.adj.signif y.position
  #  &lt;dbl&gt; &lt;chr&gt; &lt;chr&gt;  &lt;chr&gt;  &lt;int&gt; &lt;int&gt;     &lt;dbl&gt;   &lt;dbl&gt;   &lt;dbl&gt; &lt;chr&gt;             &lt;dbl&gt;
  #1   0.5 len   OJ     VC        10    10   -2.31   0.0210  0.0210  *                  24.2
  #2   1   len   OJ     VC        10    10   -2.91   0.00357 0.00357 **                 30.0
  #3   2   len   OJ     VC        10    10    0.0379 0.970   0.970   ns                 36.6
  # ... with 3 more variables: groups &lt;named list&gt;, xmin &lt;dbl&gt;, xmax &lt;dbl&gt;
  </code></pre>
  <p>Now when I use it for ggplot, the xy positions don't adjust properly.</p>
  <pre><code>library(ggpubr)
  p1 &lt;- ggerrorplot(df, x = &quot;dose&quot;, y = &quot;len&quot;, 
              desc_stat = &quot;mean_sd&quot;, color = &quot;supp&quot;)+
    stat_pvalue_manual(stat.test_len, label = &quot;p.adj.signif&quot;,
                       tip.length = 0,
                       hide.ns = TRUE)
  </code></pre>
  <p>Somehow it still works when I use faceted plot.</p>
  <pre><code>p2 &lt;- ggboxplot(df, x = &quot;supp&quot;, y = &quot;len&quot;, color = &quot;supp&quot;)+
    facet_wrap(~dose)+
    stat_pvalue_manual(stat.test_len, label = &quot;p.adj.signif&quot;,
                       tip.length = 0,
                       hide.ns = TRUE)
  </code></pre>
  <p>I added the extra column &quot;grp&quot; because that's what I need in my final plot. y-axis will be multiple doses. color will be 3 different values for grp. I need to plot stats for comparison between grp at each dose. Using the OG ToothGrowth df so that there are significant p-values to work with.</p>
  <p>How do I fix plot p1?</p>