abline: Add a styled straight line to a plot

Description Usage Arguments Examples

View source: R/RcssWrappers.R

Description

This is a wrapper for R's abline function. See R's documentation for graphics::abline for further details.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
abline(
  a = NULL,
  b = NULL,
  h = NULL,
  v = NULL,
  reg = NULL,
  coef = NULL,
  Rcss = "default",
  Rcssclass = NULL,
  ...
)

Arguments

a, b

coefficient (intercet and slope) for line

h, v

horizontal, vertical positions for line

reg

an object with a coef method

coef

vector with interect and slope for line

Rcss

style sheet object. Leave "default" to use a style defined via RcssSetDefaultStyle().

Rcssclass

character, style class

...

Further parameters, see documentation of abline()

Examples

1
2
3
4
# draw a set of horizontal lines and a vertical line
plot(c(0, 1), c(0, 1), type="n")
abline(h=seq(0, 1, by=0.2))
abline(v=0.8)

Rcssplot documentation built on Jan. 8, 2020, 5:11 p.m.