histvd | R Documentation |
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")
... |
one or more numeric vectors to compare |
breaks |
histogram |
col |
colour(s) to be used to fill the bars. The default |
a list of objects of class 'histograms'
(see
histv
)
Tomas Sieger
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.