gstripchart | R Documentation |
gstripchart
produces one-dimensional scatter plots (or dot plots) of
the given data. These plots are a good alternative to gboxplots
when the sample sizes are small.
gstripchart(x, ...)
## Default S3 method:
gstripchart(
x,
method = "overplot",
jitter = 0.1,
offset = 1/3,
vertical = FALSE,
group.names,
add = FALSE,
at = NULL,
xlim = NULL,
ylim = NULL,
ylab = NULL,
xlab = NULL,
dlab = "",
glab = "",
log = "",
pch = 0,
col = par("fg"),
cex = par("cex"),
axes = TRUE,
frame.plot = axes,
...,
grid = TRUE,
col.grid = "grey90",
col.acc = "white"
)
## S3 method for class 'formula'
gstripchart(
x,
data = NULL,
dlab = NULL,
...,
subset,
na.action = NULL,
grid = TRUE,
col.grid = "grey90",
col.acc = "white"
)
x |
the data from which the plots are to be produced. In the
default method the data can be specified as a single numeric
vector, or as list of numeric vectors, each corresponding to
a component plot. In the |
... |
additional parameters passed to the default method, or by
it to |
method |
the method to be used to separate coincident points.
The default method |
jitter |
when |
offset |
when stacking is used, points are stacked this many line-heights (symbol widths) apart. |
vertical |
when vertical is |
group.names |
group labels which will be printed alongside (or underneath) each plot. |
add |
logical, if true add the chart to the current plot. |
at |
numeric vector giving the locations where the charts should
be drawn, particularly when |
xlim, ylim |
plot limits: see |
ylab, xlab |
labels: see |
dlab, glab |
alternate way to specify axis labels: see ‘Details’. |
log |
on which axes to use a log scale: see
|
pch, col, cex |
Graphical parameters: see |
axes, frame.plot |
Axis control: see |
grid |
logical; if |
col.grid |
|
col.acc |
|
data |
a data.frame (or list) from which the variables in
|
subset |
an optional vector specifying a subset of observations to be used for plotting. |
na.action |
a function which indicates what should happen
when the data contain |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.