stripchart_annot: Make a normal stripchart, but below the plot add a specified...

Description Usage Arguments Value Author(s)

Description

Make a normal stripchart, but below the plot add a specified value for each set of points (such as the mean or MAD or stdev)

Usage

1
2
3
4
5
6
  stripchart_annot(x, values, vlab = "stat",
    val.ratio = 0.1, frame = TRUE, method = "jitter",
    jitter = 0.2, offset = 1/3, vertical = TRUE,
    group.names, ylim = NULL, ylab = NULL, xlab = NULL,
    pch = 0, do.layout = TRUE, las = 2, yaxt = "s",
    group.median = FALSE, group.mean = FALSE, ...)

Arguments

values

the vector of values to annotate with

vlab

the value label which is plotted on axis(side=2)

val.ratio

the heights ratio, relative to the main plot which has a value of 1. default=0.1, ie the bottom annotation plot will be 10% of the size of the main plot

frame

logical: add lines around each bar?

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 formula method, a symbolic specification of the form y ~ g can be given, indicating the observations in the vector y are to be grouped according to the levels of the factor g. NAs are allowed in the data.

method

the method to be used to separate coincident points. The default method "overplot" causes such points to be overplotted, but it is also possible to specify "jitter" to jitter the points, or "stack" have coincident points stacked. The last method only makes sense for very granular data.

jitter

when method="jitter" is used, jitter gives the amount of jittering applied.

offset

when stacking is used, points are stacked this many line-heights (symbol widths) apart.

vertical

when vertical is TRUE the plots are drawn vertically rather than the default horizontal.

group.names

group labels which will be printed alongside (or underneath) each plot.

Value

none. makes a plot.

Author(s)

Mark Cowley, 2009-07-31


drmjc/mjcgraphics documentation built on May 15, 2019, 2:40 p.m.