View source: R/distribution_convertors.R
beta2norm | R Documentation |
Convert beta to normal
beta2norm(x, mu = 0, sd = 1, shape1 = NULL, shape2 = NULL, ...)
x |
the gamma distributed vector |
mu |
the mean of the normal distribution to convert to |
sd |
the SD of the normal distribution to convert to |
shape1, shape2 |
non-negative parameters of the beta distribution |
... |
further arguments to pass to pbeta (e.g., ncp) |
a vector with a normal distribution
x <- rbeta(10000, 2, 3)
y <- beta2norm(x)
g <- ggplot2::ggplot() + ggplot2::geom_point(ggplot2::aes(x, y))
ggExtra::ggMarginal(g, type = "histogram")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.