View source: R/xpose.panel.histogram.R
xpose.panel.histogram | R Documentation |
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,
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,
meanllty = 1,
meanlcol = "orange",
showMedian = FALSE,
medianllwd = 3,
medianllty = 1,
medianlcol = "black",
showPCTS = FALSE,
PCTS = c(0.025, 0.975),
PCTSllwd = 2,
PCTSllty = hidlty,
PCTSlcol = "black",
vdline = NULL,
vdllwd = 3,
vdllty = 1,
vdlcol = "red",
...,
groups
)
x |
Name(s) of the x-variable. |
object |
An xpose.data object. |
breaks |
The breakpoints for the histogram. |
dens |
Density plot on top of histogram? |
hidlty |
Density line type. |
hidcol |
Color of density line. |
hidlwd |
Width of density line. |
hiborder |
Colour of the bar borders. |
hilty |
Line type for the bar borders. |
hicol |
Fill colour for the bars. |
hilwd |
Width for the bar borders. |
math.dens |
Should a density line be drawn. Values are |
vline |
|
vllwd |
Line width of the vertical lines defined with |
vllty |
Line type of the vertical lines defined with |
vlcol |
Line color of the vertical lines defined with |
hline |
|
hllwd |
Line width of the horizontal lines defined with |
hllty |
Line type of the horizontal lines defined with |
hlcol |
Line color of the horizontal lines defined with |
bins.per.panel.equal |
Allow for different bins in different panels for continuous data? TRUE or FALSE. |
showMean |
Should the mean of the data in the histogram be shown? |
meanllwd |
Line width of mean line. |
meanllty |
The line type for the mean |
meanlcol |
Color for the mean line |
showMedian |
Should the median of the data for the histogram be shown as a vertical line? |
medianllwd |
line width of median line. |
medianllty |
line type of median line. |
medianlcol |
color of median line. |
showPCTS |
Should percentiles of the data for the histogram be shown? |
PCTS |
A vector of percentiles to show. Can be any length. |
PCTSllwd |
line width of percentiles. Can be a vector of same length
as |
PCTSllty |
Line type of the percentiles. Can be a vector of same
length as |
PCTSlcol |
Color of the percentiles. Can be a vector of same length as
|
vdline |
vertical line different for each histogram. Must be a vector. |
vdllwd |
line widths |
vdllty |
line types |
vdlcol |
line colors |
... |
Other arguments that may be needed in the function. |
groups |
used to pass the conditioning variable into this function. |
Andrew Hooker, Mats Karlsson, Justin Wilkins & E. Niclas Jonsson
xpose.data-class
, Cross-references above.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.