gspineplot | R Documentation |
Spine plots are a special case of mosaic plots and can be seen as a generalization of stacked (or highlighted) bar plots. Analogously, spinograms are an extension of histograms.
gspineplot(x, ...)
## Default S3 method:
gspineplot(
x,
y = NULL,
breaks = NULL,
tol.ylab = 0.05,
off = NULL,
ylevels = NULL,
col = NULL,
main = "",
xlab = NULL,
ylab = NULL,
xaxlabels = NULL,
yaxlabels = NULL,
xlim = NULL,
ylim = c(0, 1),
axes = TRUE,
...,
grid = TRUE,
col.grid = "grey90",
col.acc = "white"
)
## S3 method for class 'formula'
gspineplot(
formula,
data = NULL,
breaks = NULL,
tol.ylab = 0.05,
off = NULL,
ylevels = NULL,
col = NULL,
main = "",
xlab = NULL,
ylab = NULL,
xaxlabels = NULL,
yaxlabels = NULL,
xlim = NULL,
ylim = c(0, 1),
axes = TRUE,
...,
subset = NULL,
grid = TRUE,
col.grid = "grey90",
col.acc = "white"
)
x |
an object, the default method expects either a single variable (interpreted to be the explanatory variable) or a 2-way table. See details. |
... |
additional arguments passed to |
y |
a |
breaks |
if the explanatory variable is numeric, this controls how
it is discretized. |
tol.ylab |
convenience tolerance parameter for y-axis annotation. If the distance between two labels drops under this threshold, they are plotted equidistantly. |
off |
vertical offset between the bars (in per cent). It is fixed to
|
ylevels |
a character or numeric vector specifying in which order the levels of the dependent variable should be plotted. |
col |
a vector of fill colors of the same length as |
main, xlab, ylab |
character strings for annotation |
xaxlabels, yaxlabels |
character vectors for annotation of x and y axis.
Default to |
xlim, ylim |
the range of x and y values with sensible defaults. |
axes |
logical. If |
grid |
logical; if |
col.grid |
|
col.acc |
|
formula |
a |
data |
an optional data frame. |
subset |
an optional vector specifying a subset of observations to be used for plotting. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.