Learn R Programming

forestplot (version 1.0)

prFpXrange: Gets the x-axis range

Description

If the borders are smaller than the upper/lower limits then clip the graph. The line will have arrows indicating that it continues beyond the graph The zero bar has to be on the chart though!

Usage

prFpXrange(upper, lower, clip, zero, xticks, xlog)

Arguments

upper
The upper bound of the confidence interval for the forestplot, needs to be the same format as the mean, i.e. matrix/vector of equal columns & length
lower
The lower bound of the confidence interval for the forestplot, needs to be the same format as the mean, i.e. matrix/vector of equal columns & length
clip
Lower and upper limits for clipping confidence intervals to arrows
zero
x-axis coordinate for zero line. If you provide a vector of length 2 it will print a rectangle instead of just a line
xticks
Optional user-specified x-axis tick marks. Specify NULL to use the defaults, numeric(0) to omit the x-axis
xlog
If TRUE, x-axis tick marks are to follow a logarithmic scale, e.g. for logistic regressoin (OR), survival estimates (HR), poisson regression etc. Note: This is an intentional break with the original

Value

  • vector Contains a min and max value