histline: Draws histogram.

View source: R/utils.R

histlineR Documentation

Draws histogram.

Description

Utility function to draw histograms with more options than hist allows.

Usage

histline(
  height,
  breaks,
  lineonly = FALSE,
  outline = FALSE,
  fill = FALSE,
  ylim = range(height),
  xlab = "x",
  ylab = "y",
  ...
)

Arguments

height

Height of histogram bars.

breaks

Locations of boundaries of histogram bins (must be 1 longer than height).

lineonly

If TRUE, uses lines to draw lines on current plot; else uses plot to draw lines on new plot.

outline

If TRUE, draws only the outline (profile) of the histogram; else draws each complete bar.

fill

If TRUE, uses polygon() to fill barsl in this case valid arguments to polygon() are passed via argument(s) "...". If fill==FALSE, valid arguments to plot() or lines() are passed via argument(s) "..."

ylim

Range of y-axis.

xlab

Label for x-axis.

ylab

Label for y-axis.

...

See aargument fill.


david-borchers/hmltm documentation built on Oct. 29, 2023, 9:07 p.m.