This is the histogram panel function for Xpose 4. This is not intended to be
ised outside the xpose.plot.histogram
function. Most of the
arguments take their default values from xpose.data object but this
can be overridden by supplying them as argument to
xpose.plot.histogram
.
xpose.panel.histogram(x, object,
breaks = NULL,
dens=TRUE, # density plot on top of histogram?
hidlty = object@Prefs@Graph.prefs$hidlty,
hidcol = object@Prefs@Graph.prefs$hidcol,
hidlwd = object@Prefs@Graph.prefs$hidlwd,
hiborder = object@Prefs@Graph.prefs$hiborder,
hilty = object@Prefs@Graph.prefs$hilty,
hicol = object@Prefs@Graph.prefs$hicol,
hilwd = object@Prefs@Graph.prefs$hilwd,
math.dens = NULL,
vline= NULL,
vllwd= 3,
vllty= 1,
vlcol= "grey",
hline= NULL,
hllwd= 3,
hllty= 1,
hlcol= "grey",
bins.per.panel.equal = TRUE, showMean = FALSE,
meanllwd= 3,#object@Prefs@Graph.prefs$abllwd,
meanllty= 1,#object@Prefs@Graph.prefs$abllty,
meanlcol= "orange",#object@Prefs@Graph.prefs$ablcol,
showMedian = FALSE,
medianllwd= 3,#object@Prefs@Graph.prefs$abllwd,
medianllty= 1,#object@Prefs@Graph.prefs$abllty,
medianlcol= "black",#object@Prefs@Graph.prefs$ablcol,
showPCTS = FALSE,
PCTS = c(0.025,0.975),
PCTSllwd= 2,#object@Prefs@Graph.prefs$abllwd,
PCTSllty= hidlty,#object@Prefs@Graph.prefs$abllty,
PCTSlcol= "black",#object@Prefs@Graph.prefs$ablcol,
## vline settings different for each histogram
vdline= NULL,#object@Prefs@Graph.prefs$abline,
vdllwd= 3,#object@Prefs@Graph.prefs$abllwd,
vdllty= 1,#object@Prefs@Graph.prefs$abllty,
vdlcol= "red",#object@Prefs@Graph.prefs$ablcol,
...,
groups)
Name(s) of the x-variable.
An xpose.data object.
The breakpoints for the histogram.
Density plot on top of histogram?
Density line type.
Color of density line.
Width of density line.
Colour of the bar borders.
Line type for the bar borders.
Fill colour for the bars.
Width for the bar borders.
Should a density line be drawn. Values are
NULL
or TRUE
.
NULL
or a vector of locations for the vertical
lines to be drawn. For example, vline=c(50,60)
will draw two
vertical lines. The function
panel.abline
is used.
Line width of the vertical lines defined with
vline
. Can be a vector or a single value, for example vllwd=2
or vllwd=c(2,3)
.
Line type of the vertical lines defined with
vline
. Can be a vector or a single value, for example vllty=1
or vllty=c(1,2)
.
Line color of the vertical lines defined with
vline
. Can be a vector or a single value, for example vlcol="red"
or vllty=c("red","blue")
.
NULL
or a vector of locations for the horizontal
lines to be drawn. For example, hline=c(50,60)
will draw two horizontal
lines. The function
panel.abline
is used.
Line width of the horizontal lines defined with
hline
. Can be a vector or a single value, for example hllwd=2
or hllwd=c(2,3)
.
Line type of the horizontal lines defined with
hline
. Can be a vector or a single value, for example hllty=1
or hllty=c(1,2)
.
Line color of the horizontal lines defined with
hline
. Can be a vector or a single value, for example hlcol="red"
or hllty=c("red","blue")
.
Allow for different bins in different panels for continuous data? TRUE or FALSE.
Should the mean of the data in the histogram be shown?
Line width of mean line.
The line type for the mean
Color for the mean line
Should the median of the data for the histogram be shown as a vertical line?
line width of median line.
line type of median line.
color of median line.
Should percentiles of the data for the histogram be shown?
A vector of percentiles to show. Can be any length.
line width of percentiles. Can be a vector of same length as PCTS
.
Line type of the percentiles. Can be a vector of same length as PCTS
.
Color of the percentiles. Can be a vector of same length as PCTS
.
vertical line different for each histogram. Must be a vector.
line widths
line types
line colors
Other arguments that may be needed in the function.
used to pass the conditioning variable into this function.
xpose.data-class
, Cross-references above.