
Last chance! 50% off unlimited learning
Sale ends in
Convert gamma to normal
gamma2norm(x, mu = 0, sd = 1, shape = NULL, rate = 1, scale = 1/rate)
a vector with a normal distribution
the gamma distributed vector
the mean of the normal distribution to convert to
the SD of the normal distribution to convert to
gamma distribution parameter (must be positive)
an alternative way to specify the scale
gamma distribution parameter (must be positive)
x <- rgamma(10000, 2)
y <- gamma2norm(x)
g <- ggplot2::ggplot() + ggplot2::geom_point(ggplot2::aes(x, y))
ggExtra::ggMarginal(g, type = "histogram")
Run the code above in your browser using DataLab