Rcssplot (version 1.0.0)

abline: Add a styled straight line to a plot

Description

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

Usage

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

Run this code
# NOT RUN {
# 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)

# }

Run the code above in your browser using DataLab