title: plotting density cauchy distribution in R
body: <p>Just curious how can you generate the dcauchy distribution from Wikipedia:    </p>
  
  <p><a href="https://i.stack.imgur.com/YlI0N.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YlI0N.png" alt="image"></a></p>
  
  <p>Normally, you have </p>
  
  <pre><code>dcauchy(x, location = 0, scale = 1, log = FALSE) 
  </code></pre>
  
  <p>for one line density p(x) v.s x </p>
  
  <p>I assume in order to generate the diagram from wiki, a data.frame involves? </p>
  
  <pre><code>cauchy_dist &lt;- data.frame(cauchy1 = rcauchy(10, location = 0, scale = 1, log = FALSE), cauchy2 = ....... , cauchy3 = ..... ) 
  </code></pre>
  
  <p>or you just need to </p>
  
  <pre><code>plot(x, P(x))
  </code></pre>
  
  <p>and then add lines to it? </p>