title: Error in xy.coords(x, y, xlabel, ylabel, log) : 'x' and 'y' lengths differ for Gamma distribution plot
body: <p>I'm trying to plot the pdf distribution of Gamma(alpha=29, beta = 3) on a graph, but I get the error: "Error in xy.coords(x, y, xlabel, ylabel, log) : 'x' and 'y' lengths differ". Why?</p>
  
  <pre><code>x &lt;- seq(0, 1000, by = 1)
  y &lt;- dgamma(x, shape = 3, rate = 1/29, scale = 1/rate, log = FALSE)
  plot(x, y, xlabel = "x", ylabel = "Gamma(29,3)")
  </code></pre>