Learn R Programming

flatness (version 0.1.4)

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

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

# S3 method for 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.