Learn R Programming

plotrix (version 2.1-5)

get.segs: Calculate the midpoints and limits for a centipede plot

Description

Calculates midpoints and limits for a list or data frame for use with centipede.plot.

Usage

get.segs(x,midpoint="mean",lower.limit="std.error",upper.limit="std.error")

Arguments

x
a list or data frame.
midpoint
The name of the function to calculate midpoints.
lower.limit,upper.limit
The names of the function to calculate lower and upper limits.

Value

  • A matrix with four rows and as many columns as were in the object x. The first row contains the midpoint values, the second and third the lower and upper limit values respectively and the fourth row the number of valid observations in the columns.

Details

get.segs calls the functions whose names are passed to calculate midpoints and limits for each list element or data frame column.

See Also

centipede.plot