Learn R Programming

svytest (version 1.1.0)

plot.perm_test: Plot method for permutation test objects

Description

Produces a histogram of the permutation distribution with a vertical line indicating the observed statistic.

Usage

# S3 method for perm_test
plot(x, bins = 30, col = "lightgray", line_col = "red", ...)

Value

A base R side effect plot. Function returns NULL invisibly.

Arguments

x

An object of class "perm_test".

bins

Number of histogram bins (default 30).

col

Color for histogram bars (default "lightgray").

line_col

Color for observed statistic line (default "red").

...

Additional arguments passed to hist().