title: Plotting Error with apa_linplot in papaja: Error in min(0, y.values[, "lower_limit"],
body: <p>Hey folks I have some issues using papaja plot functions. </p>
  
  <p>I have this kind of data. frame in long format</p>
  
  <pre><code># A tibble: 6 x 4
  # Groups:   MemSetSize, UpdatingSteps [6]
    Subject MemSetSize UpdatingSteps meanACC
      &lt;int&gt; &lt;fct&gt;      &lt;fct&gt;           &lt;dbl&gt;
  1       1 3          0               0.958
  2       1 3          2               1    
  3       1 3          4               1    
  4       1 5          0               0.957
  5       1 5          2               1    
  6       1 5          4               1   
  </code></pre>
  
  <p>Which I try to plot very simple for the beginning:</p>
  
  <pre><code>papaja::apa_lineplot(Plot_ACC
                      , id ="Subject"
                      , dv ="meanACC"
                      ,factors = "MemSetSize", "UpdatingSteps")
  </code></pre>
  
  <p>If I don't define the factors, it works but it is useless as you can imagine. If I try it with the code above, I get this error:</p>
  
  <pre><code>Error in min(0, y.values[, "lower_limit"], aggregated[, dv], na.rm = TRUE) : 
    invalid 'type' (list) of argument
  </code></pre>
  
  <p>I'm really helpless and maybe it is related to some issues with other packages, but even if I unload all unnecessary libraries, it is still not working. If I use the aov objects from afex it works, but I can't change the factors assignment to the axis. Here are my loaded packages:</p>
  
  <pre><code>library(readr)
  library(afex)
  library(ggbeeswarm)
  library(ggpol)
  library(ggplot2)
  library(ggthemes)
  library(tidyverse)
  library(reshape2)
  library(psych)
  library(devtools)
  library(papaja)
  library(sjstats)
  library(xtable)
  library(emmeans)
  library(BANOVA)
  </code></pre>
  
  <p>Maybe somebody has a clue about that? </p>