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

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)

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)