Usage
hist.bxp(x, nclass, breaks, probability=FALSE, include.lowest=TRUE,
xlab = deparse(substitute(x)),
...,
width=0.2, boxcol=3, medcol=2, medlwd=5, whisklty=2, staplelty=1)
Arguments
x
numeric vector of data for histogram. Missing values
(NA
s) are allowed.
nclass
recommendation for the number of classes (i.e., bars) the histogram should
have. The default is a number proportional to the logarithm of the length
of x
.
breaks
vector of the break points for the bars of the histogram. The count in the
i-th bar is sum(breaks[i] < x <= breaks[i+1])<="" code="">
except that if include.lowest
is TRUE
(the default),
the first bar also includes po=>
probability
logical flag: if TRUE
, the histogram will be scaled as a probability
density; the sum of the bar heights times bar widths will equal 1
. If
FALSE
, the heights of the bars will be counts.
include.lowest
If TRUE
(the default), the lowest bar will include data
points equal to the lowest break, otherwise it will act like the
other bars (see the description of the breaks
argument).
xlab
character or expression for x axis labeling.
...
additional arguments to barplot
. The
hist
function uses the function barplot
to do
the actual plotting; consequently, arguments to the width
width of the box relative to the height of the histogram. DEFAULT is
0.2
.
boxcol
color of filled box. The default is 3
.
medcol
the color of the median line. The special value, NA
,
indicates the current plotting color (par("col")
). The
default is 2
. If boxcol=0
and medcol
is not
explicitly specified this
medlwd
median line width. The special value NA
, is used to indicate
the current line width (par("lwd")
). The default is 5
.
whisklty
whisker line type. The special value NA
indicates the
current line type (par("lty")
). The default is 2
(dotted line).
staplelty
staple (whisker end cap) line type. The special value NA
indicates the current line type (par("lty")
). The default is
1
(solid line). Graphical parameters (see par