unitHistogram: Histogram normalized to unity

View source: R/unitHistogram.r

unitHistogramR Documentation

Histogram normalized to unity

Description

Plots a histogram of data provided in which the height of the frequency are normalized.

Usage

unitHistogram(
  x,
  myCuts = NULL,
  lwd.bar = 4,
  offset = 0.4,
  hist.type = "box",
  col.hist = "#D7D7D7",
  xlim = NULL,
  ylab = NULL,
  ...
)

Arguments

x

numeric vector

myCuts

alternative cut points (optional)

lwd.bar

line width of the histogram bars

offset

width between the bars

hist.type

histogram type, can be 'box' or 'lines'

col.hist

color of histograms

xlim

limits of x coordinate

ylab

label of the frequency (y label)

...

passed to plot()

Value

A histogram

Examples

set.seed(1234567)
myvals = rnorm(10000,50,5)
unitHistogram(myvals, xlab = "My Values", cex.lab = 1.25)

qPharmetra/qpToolkit documentation built on May 24, 2023, 8:52 a.m.