powered by
Density, distribution function, quantile function and random generation for the Gamma distribution with #' parameters shape and scale with default values.
dgamma(x, shape = 1, scale = 1, log = FALSE)pgamma(q, shape = 1, scale = 1, lower.tail = TRUE, log.p = FALSE)qgamma(p, shape = 1, scale = 1, lower.tail = TRUE, log.p = FALSE)rgamma(n, shape = 1, scale = 1)sgamma(x)
pgamma(q, shape = 1, scale = 1, lower.tail = TRUE, log.p = FALSE)
qgamma(p, shape = 1, scale = 1, lower.tail = TRUE, log.p = FALSE)
rgamma(n, shape = 1, scale = 1)
sgamma(x)
A numeric vector of values.
A string of the column in data for the shape aesthetic.
scale parameter.
logical; if TRUE, probabilities p are given as log(p).
vector of quantiles.
logical; if TRUE (default), probabilities are P[X <= x],otherwise, P[X > x].
vector of probabilities.
number of observations.
A numeric vector.
dgamma
# NOT RUN { x <- seq(0.01, 5, by = 0.01) plot(x, dgamma(x), type = "l") # }
Run the code above in your browser using DataLab