Hist {Rcmdr} | R Documentation |
This function is a wrapper for the hist
function in
the base
package, permitting percentage scaling of the
vertical axis in addition to frequency and density scaling.
Hist(x, scale=c("frequency", "percent", "density"), xlab=deparse(substitute(x)), ylab=scale, main="", ...)
x |
a vector of values for which a histogram is to be plotted. |
scale |
the scaling of the vertical axis: |
xlab |
x-axis label, defaults to name of variable. |
ylab |
y-axis label, defaults to value of |
main |
main title for graph, defaults to empty. |
... |
arguments to be passed to |
This function returns NULL
, and is called for its side effect —
plotting a histogram.
John Fox jfox@mcmaster.ca
library(car) data(Prestige) Hist(Prestige$income, scale="percent")