Skip to contents

Creates a line

Usage

ob_line(
  slope = class_missing,
  intercept = class_missing,
  xintercept = class_missing,
  a = class_missing,
  b = class_missing,
  c = class_missing,
  alpha = class_missing,
  color = class_missing,
  lineend = class_missing,
  linejoin = class_missing,
  linewidth = class_missing,
  linetype = class_missing,
  style = class_missing,
  ...
)

Arguments

slope

coefficient in y = slope * x + intercept

intercept

value of y when x is 0

xintercept

value of x when y is 0

a

coefficient in general form: a * x + b * y + c = 0

b

coefficient in general form: a * x + b * y + c = 0

c

constant in general form: a * x + b * y + c = 0

alpha

numeric value for alpha transparency

color

character string for color

lineend

Line end style (round, butt, square).

linejoin

Line join style (round, mitre, bevel).

linewidth

Width of lines

linetype

type of lines

style

a style list

...

<dynamic-dots> properties passed to style