plotArea: Line with confidence interval

View source: R/general.purpuse.utilities.R

plotAreaR Documentation

Line with confidence interval

Description

CI is shown by area

Usage

plotArea(
  x,
  p,
  col,
  sd.mult = 2,
  new = FALSE,
  ylim = NULL,
  xlim = range(x),
  area.transp = 0.2,
  type = "l",
  area.den = -1,
  cilim = NULL,
  ...
)

Arguments

x

x coordinates

p

y coordinates. Matrix with two (mean and sd) or three (mean, lower CI bound, higher CI bound) columns

col

line and area colour

sd.mult

coefficient to multiply sd to get CI

new

make ne plot (default is to add line on existed plot)

ylim, xlim

see plot

area.transp

alpha for CI area

type

type of plot

area.den

density of polygon

cilim

numerical vector with two values, gives lower and apper values to truncate CI. NULL (to truncation) by default.

...

iaaka/visutils documentation built on Jan. 17, 2025, 11:29 p.m.