[R] Applying qqmath using gamma distribution...

Duncan Murdoch
Fri, 04 Sep 2009 12:50:47 -0000

On 9/4/2009 8:36 AM, Petar Milin wrote:
> Hello ALL!
> Can anyone tell me how to specify qqmath() function with distribution
> qgamma?
> In help it is bit vague how to pass shape and scale parameters for gamma.

Take a look at the first example, which passes in the df parameter for a
t distribution.  You want something like

x <- runif(1000)  # not a gamma, plot should look bad
qqmath(~ x, distribution=function(x) qgamma(x, shape=2, scale=2))

Duncan Murdoch