title: How to draw a QQ plot in R?
body: <p>The task:</p>
  
  <p>To draw a quantile-quantile (Q-Q) plot to check whether the gamma distribution is a good model for my data without relying on qqplot. To judge the goodness of fit in this Q-Q plot, draw Q-Q plots for three sets of 150 observations generated from your fitted Gamma distribution.</p>
  
  <p>So I have 150 observations which I have modelled as a Gamma distribution and found estimates for k and lambda:</p>
  
  <pre><code>pp = c(1:150)/151
  qq= qgamma(pp,k,rate=lambda)
  layout(matrix(c(1,1,2,3), 2, 2, byrow = TRUE))
  plot(qq,sort(x),main="Q-Q plot with gamma distribution",xlab='Quantiles of gamma distribution',ylab="Ordered data")
  </code></pre>
  
  <p>However when I plot qq individually 3 times it comes up with exactly the same graph?</p>