title: Plot Multiple Roots in R
body: <p>I have an equation which I would like to solve for values of <code>m</code></p>
  
  <pre><code>m^2+x*m+1=0
  </code></pre>
  
  <p>I know I can find these roots using <code>polyroot(c(1,x,1))</code>.</p>
  
  <p>I'd like to plot these roots in R for varying <code>x</code> such that all the real roots of the polynomial are plotted for each value of <code>x</code>.</p>
  
  <p>Note, the polynomial may become more complex than this, ruling out application of the quadratic or cubic formulas.</p>
  
  <p>Any thoughts as to how I could accomplish this?</p>
  
  <p>Thanks!</p>