errlines: Draw a line with uncertainty regions

View source: R/errlines.R

errlinesR Documentation

Draw a line with uncertainty regions

Description

Draw a line with uncertainty regions

Usage

errlines(
  x,
  y,
  errp,
  errn = errp,
  col = "black",
  alpha = 0.5,
  smooth = FALSE,
  df = NULL,
  ...
)

Arguments

x

vector of x-coordinates

y

vector of y-coordinates

errp

vector of y-errors in the positive direction (upwards)

errn

vector of y-errors in the negative direction (downwards)

col

color of the line

alpha

transparency of the uncertainty region

smooth

logical flag indicating whether the line should be smoothed

df

df (=degrees of freedom) parameter of smooth.spline function

...

additional parameters used by lines

Value

None

Author(s)

Danail Obreschkow


obreschkow/cooltools documentation built on Nov. 16, 2024, 2:46 a.m.