Generates a plot of the Uniform distribution with user specified parameters.
Arguments
- stat
a statistic to obtain the probability from. When using the "bounded" condition, you must supply the parameter as
stat = c(lower_bound, upper_bound)
. Otherwise, a simplestat = desired_point
will suffice.- a
starting point. Note:
a
<b
- b
end point. Note:
b
>a
- section
Select how you want the statistic(s) evaluated via
section=
either"lower"
,"bounded"
,"upper"
, or"tails"
.
Examples
# Evaluates lower tail.
visualize.unif(stat = 8.75, a = 7, b = 10, section = "lower")
# Evaluates bounded region.
visualize.unif(stat = c(3,6), a = 1, b = 7, section = "bounded")
# Evaluates upper tail.
visualize.unif(stat = 2, a = 1, b = 5, section = "upper")