Learn R Programming

r4ss (version 1.44.0)

plotCI: Plot points with confidence intervals.

Description

Given a set of x and y values and upper and lower bounds, this function plots the points with error bars. This was Written by Venables and modified to add access to ylim and contents.

Usage

plotCI(
  x,
  y = NULL,
  uiw,
  liw = uiw,
  ylo = NULL,
  yhi = NULL,
  ...,
  sfrac = 0.01,
  ymax = NULL,
  add = FALSE,
  col = "black"
)

Arguments

x

The x coordinates of points in the plot

y

The y coordinates of the points in the plot.

uiw

The width of the upper portion of the confidence region.

liw

The width of the lower portion of the confidence region.

ylo

Lower limit of y range.

yhi

Upper limit of y range.

Additional inputs that will be passed to the function plot(x,y,ylim=ylim,...)

sfrac

Fraction of width of plot to be used for bar ends.

ymax

Additional input for Upper limit of y range.

add

Add points and intervals to existing plot? Default=FALSE.

col

Color for the points and lines.