histvd: Vertically aligned histograms.

histvdR Documentation

Vertically aligned histograms.

Description

histvd creates one or more vertically aligned histograms, rendered by hist. This is useful for visual comparison of several numeric vectors.

Usage

histvd(..., breaks = 100, 
    col = "gray")

Arguments

...

one or more numeric vectors to compare

breaks

histogram breaks, see 'hist'

col

colour(s) to be used to fill the bars. The default

Value

a list of objects of class 'histograms' (see histv)

Author(s)

Tomas Sieger

Examples

# two aligned histograms with free 'ylim'
histvd(seq(1,10), seq(1,20,.1))
# two aligned histograms with the same 'ylim' showing the relative
# proportions
histvd(seq(1,10), seq(1,20,.1), ylimFixed=TRUE)

tsieger/tsiMisc documentation built on Oct. 10, 2023, 10:24 p.m.