plot_trim_random | R Documentation |
Illustrate random function of a trimmed distribution
plot_trim_random(
d,
trim = c(-Inf, Inf),
doTrunc = FALSE,
nsim = 200,
point.colour = "black",
point.size = 3,
lab.size = 14
)
d |
distributions3 object |
trim |
Numeric vector of size 2, trimming bounds. |
doTrunc |
Logical, do truncation? default FALSE, i.e. rectification is used. |
nsim |
Integer, number of simulated values |
point.size, point.colour, lab.size, |
graphical parameters |
a ggplot object.
# Define Normal distribution
norm <- Normal(mu=0.75,sigma=0.5)
plot_trim_random(norm)
plot_trim_random(norm,trim=c(0,1))
plot_trim_random(norm,trim=c(0,1),doTrunc=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.