Skip to contents

Creates a line

Usage

ob_line(
  slope = numeric(0),
  intercept = numeric(0),
  xintercept = numeric(0),
  a = numeric(0),
  b = numeric(0),
  c = numeric(0),
  alpha = numeric(0),
  color = character(0),
  lineend = numeric(0),
  linejoin = numeric(0),
  linewidth = numeric(0),
  linetype = numeric(0),
  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