histMulti | R Documentation |
Multipanel histogram of values, one histogram for each group.
histMulti(x, freq = rep(1, length(x)), bygroup, sug = sort(unique(bygroup)), xlab = "Values", ylab = "Frequency", barw = 5, samescale = TRUE, fillcol = "gray", rangecol = "red", mar = c(3, 3, 2, 1), oma = c(2, 2, 1, 1))
x |
Numeric vector of values to be plotted. |
freq |
Numeric vector of frequencies corresponding to |
bygroup |
Vector, identifying the group membership of the values to be plotted. |
sug |
Vector, identifying the unique groups to which locations may belong,
default sort(unique( |
xlab |
Character scalar, label to assign to collection of x-axes. |
ylab |
Character scalar, label to assign to collection of y-axes. |
barw |
Numeric scalar, the width of the bars in units of |
samescale |
Logical scalar, indicating if the same (TRUE, default) or different (FALSE) lon/lat scales should be used for all panels. |
fillcol |
A scalar, the color used to fill the histograms, default "gray". |
rangecol |
A scalar, the color used to draw the lines denoting the range of values, default "red". |
mar |
A numeric vector of length 4, the number of lines of margin c(bottom, left, top, right) around each plotted map plot, default c(3, 3, 2, 1). |
oma |
A numeric vector of length 4, the number of lines of the outer margin c(bottom, left, top, right) around the entire collection of panels, default c(2, 2, 1, 1). |
myval <- c(23, 35, 47, 62) myfreq <- c(5, 2, 3, 4) mygroup <- c("A", "A", "B", "B") histMulti(x=myval, freq=myfreq, bygroup=mygroup) histMulti(x=myval, freq=myfreq, bygroup=mygroup, samescale=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.