Convert normal to gamma
the normally distributed vector
gamma distribution parameter (must be positive)
an alternative way to specify the scale
gamma distribution parameter (must be positive)
the mean of x (calculated from x if not given)
the SD of x (calculated from x if not given)
a vector with a gamma distribution
x <- rnorm(10000)
y <- norm2gamma(x, shape = 2)
g <- ggplot2::ggplot() + ggplot2::geom_point(ggplot2::aes(x, y))
ggExtra::ggMarginal(g, type = "histogram")