plot_trim_cdf | R Documentation |
Plot cdf of a trimmed distribution
plot_trim_cdf(
d,
trim = c(-Inf, Inf),
doTrunc = FALSE,
xgrid = quantile_trim(d, seq(0.001, 0.999, length.out = 1000)),
line.size = 1,
line.colour = "black",
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. |
xgrid |
Numeric vector, x-values where cdf is evaluated |
line.size, line.colour, lab.size, |
graphical parameters |
a ggplot object.
# Define Normal distribution
norm <- Normal(mu=0.75,sigma=0.5)
plot_trim_cdf(norm)
plot_trim_cdf(norm,trim=c(0,1))
plot_trim_cdf(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.