[R] Applying qqmath using gamma distribution...
Duncan Murdoch
murdoch at stats.uwo.ca
Fri Sep 4 14:50:47 CEST 2009
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
More information about the R-help
mailing list