plot_z_dist: Plot z-Distribution and Shaded p-Value

View source: R/plot_z_dist.R

plot_z_distR Documentation

Plot z-Distribution and Shaded p-Value

Description

Plot z-Distribution and Shaded p-Value

Usage

plot_z_dist(x, shade_p_value = TRUE)

Arguments

x

prop.test() or prop_test() object

shade_p_value

Logical value indicating whether to shade the area under the curve corresponding to the p-value. Default is TRUE.

Value

Plot of the z-distribution. If shade_p_value=TRUE, the area under the curve corresponding to the p-value will also be shaded.

Examples

heads <- rbinom(1, size = 100, prob = .5)
my_z = prop.test(heads, 100)
plot_z_dist(my_z)


zief0002/educate documentation built on July 27, 2023, 9:25 a.m.