Convert a uniform distribution to a normal (gaussian) distribution with specified mu and sd
unif2norm(x, mu = 0, sd = 1, min = NULL, max = NULL)
the uniformly distributed vector
the mean of the normal distribution to return
the SD of the normal distribution to return
the minimum possible value of x (calculated from x if not given)
the maximum possible value of x (calculated from x if not given)
a vector with a gaussian distribution
x <- runif(10000)
y <- unif2norm(x)
#> min was set to -9.62444417178631e-05
#> max was set to 0.999777883693948
g <- ggplot2::ggplot() + ggplot2::geom_point(ggplot2::aes(x, y))
ggExtra::ggMarginal(g, type = "histogram")