hist.grouped: Grouped Histogram

View source: R/hist.grouped.R

hist.groupedR Documentation

Grouped Histogram

Description

Prepares a grouped histogram of a particular set of data.

Usage

## S3 method for class 'grouped'
hist(
  x,
  interval.size = NA,
  width.consider = lolcat.default.width.consider,
  anchor.value = NA,
  col = "lightblue",
  main = "Grouped Histogram",
  right = F,
  include.lowest = T,
  stat.lsl = NA,
  stat.lsl.label = "LSL",
  stat.target = NA,
  stat.target.label = "TGT",
  stat.usl = NA,
  stat.usl.label = "USL",
  after.plot = function(x, ...) {
 },
  freq = T,
  xlim = c(min(na.omit(c(x, stat.lsl, anchor.value))), max(na.omit(c(x, stat.usl,
    anchor.value)))),
  ...
)

Arguments

x

Vector/numeric - The data for the plot

interval.size

Numeric - Bin size

width.consider

Numeric - Bin sizes to consider when plotting histograms

anchor.value

Numeric - One of the breakpoints

col

Character - color of bars

main

Character - Main chart title

right

Logical - If TRUE, the histogram cells are right-closed (left open) intervals.

include.lowest

Logical - If TRUE, an x[i] equal to the breaks value will be included in the first (or last, for right = FALSE) bar. This will be ignored (with a warning) unless breaks is a vector.

stat.lsl

Numeric - Lower specification limit

stat.lsl.label

Character - Lower specification limit label

stat.target

Numeric - Process target

stat.target.label

Character - Process target label

stat.usl

Numeric - Upper specification limit

stat.usl.label

Character - Upper specification limit label

after.plot

Function - Function to perform after plotting, see hist.add.distribution.curve.normal

freq

Logical - If TRUE, use frequency instead of probability densities.

xlim

Numeric - Chart Domain, expressed as c(x.min,x.max)

...

Additional parameters - Additional parameters passed to hist() and after.plot()

Value

Return value of hist()


burrm/lolcat documentation built on Sept. 15, 2023, 11:35 a.m.