visualize.unif: Visualize Uniform Distribution

Description Usage Arguments Author(s) See Also Examples

View source: R/visualize.unif.R

Description

Generates a plot of the Uniform distribution with user specified parameters.

Usage

1
visualize.unif(stat = 1, a = 0, b = 1, section = "lower")

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 simple stat = 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".

Author(s)

James Balamuta

See Also

visualize.it() , dunif().

Examples

1
2
3
4
5
6
7
8
# 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")

visualize documentation built on Jan. 11, 2020, 9:21 a.m.