plot.rkhist: Method for function 'plot' an S3 object of class 'rkhist'

Description Usage Arguments Value

View source: R/rkhist.R

Description

Plot a rank histogram stored in an object of S3 class rkhist, with an horizontal dashed line indicating the expected count for a perfectly flat rank histogram.

Usage

1
2
## S3 method for class 'rkhist'
plot(x, mini = min(0, min(x)), what = "counts", ...)

Arguments

x

an rkhist S3 object containing the rank histogram to plot. See function flatness::rkhist.

mini

a numeric. The minimum value in the ylim argument used to plot. Relevant only when plotting counts, ignored otherwise.

what

a character string taking its value in c("counts", "percents", "proportions"). What must be plotted.

...

other arguments passed to function base::plot.default. Some arguments are already used in this function, and may not be changed.

Value

NULL, invisibly.


flatness documentation built on June 29, 2021, 9:08 a.m.