title: ggplot2, aes vs aes_string
body: <p>So I need to replace <code>aes</code> with <code>aes_string</code> due to failing <code>rcmdcheck()</code>.</p>
  <p>Original:</p>
  <pre class="lang-r prettyprint-override"><code>        aes(
            x = A,
            y = pmax(B, C, na.rm = TRUE),
            ),
  </code></pre>
  <p>My confusion is regarding <code>B</code> and <code>C</code>. Am I allowed to put quotes around them since they are inside the <code>pmax</code> function? Like so:</p>
  <pre class="lang-r prettyprint-override"><code>        aes_string(
            x = &quot;A&quot;,
            y = pmax(&quot;B&quot;, &quot;C&quot;, na.rm = TRUE),
            ),
  </code></pre>
  <p>Is the below yet another solution?:</p>
  <pre class="lang-r prettyprint-override"><code>        aes(
            x = .data$A,
            y = pmax(.data$B, .data$C, na.rm = TRUE),
            ),
  </code></pre>
  <p>EDITED:</p>
  <p>The R CMD Check error is that there is no global binding for the variables <code>A</code>, <code>B</code>, and <code>C</code>.</p>