compact_hist: Plots a histogram using the compact axis notation from the...

Description Usage Arguments Details

Description

compact_hist() plots a histogram using the compact axis notation from the compactr package.

Usage

1
2
3
compact_hist(x, xlab = NULL, ylab = NULL, n_breaks = NULL, ht = NULL,
  xlim = NULL, counts = TRUE, bar_color = "grey70", log_scale = FALSE,
  plot = TRUE, ...)

Arguments

x

A vector of values for which the histogram is desired.

xlab

A label for the x axis. Defaults to no label.

ylab

A label for the y axis. Defaults to "Counts" if counts = TRUE and "Density" if counts = FALSE.

n_breaks

one of:

  1. A single number giving the number of cells for the histogram.

  2. A character string naming an algorithm to compute the number of cells. Defaults to "Sturges." See documentation for hist() for details and other algorithms.

  3. A vector giving the breakpoints between histogram cells.

  4. A function to compute the vector of breakpoints.

  5. A function to compute the number of cells.

ht

The height of the y axis.

xlim

The limits of the x axis.

counts

Logical; should the heights be counts. If FALSE, then probabilities are used instead.

bar_color

The color of the bars. Defaults to "grey70".

log_scale

Logical; should the x axis be plotted on the log scale? Defaults to FALSE.

plot

Logical. Should the histgram be plotted? If FALSE, the histogram is not plotted and the data for the histogram are returned.

...

Arguments passed to eplot() in the package compactr.

Details

Plots a histogram using the compact axis notation from the compactr package.


carlislerainey/separation documentation built on May 13, 2019, 12:45 p.m.