View source: R/unitHistogram.r
unitHistogram | R Documentation |
Plots a histogram of data provided in which the height of the frequency are normalized.
unitHistogram(
x,
myCuts = NULL,
lwd.bar = 4,
offset = 0.4,
hist.type = "box",
col.hist = "#D7D7D7",
xlim = NULL,
ylab = NULL,
...
)
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() |
A histogram
set.seed(1234567)
myvals = rnorm(10000,50,5)
unitHistogram(myvals, xlab = "My Values", cex.lab = 1.25)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.