title: ggplot using purrr map() to plot same x with multiple y's
body: <p>I want to create multiple plots that have the same x but different y's using purrr package methodology. That is, I would like to use the map() or walk() functions to perform this. </p>
  
  <p>Using mtcars dataset for simplicity.</p>
  
  <pre><code>ggplot(data = mtcars, aes(x = hp, y = mpg)) + geom_point()
  ggplot(data = mtcars, aes(x = hp, y = cyl)) + geom_point()
  ggplot(data = mtcars, aes(x = hp, y = disp)) + geom_point()
  </code></pre>
  
  <p><strong>edit</strong>
  So far I have tried</p>
  
  <pre><code>y &lt;- list("mpg", "cyl", "disp")
  mtcars %&gt;% map(y, ggplot(., aes(hp, y)) + geom_point()
  </code></pre>