addLine: Add a line to the semMediation plot

View source: R/makeEquation.R

addlineR Documentation

Add a line to the semMediation plot

Description

Add a line to the semMediation plot

Usage

addline(
  x1 = 0,
  y1 = 0,
  x2 = 10,
  y2 = 10,
  height = 3,
  width = 5,
  start = "ellipse",
  end = "rect",
  linetype = "solid",
  size = 0.2,
  colour = "black",
  ...
)

Arguments

x1

The x coordinate of start point

y1

The y coordinate of start point

x2

The x coordinate of end point

y2

The y coordinate of end point

height

A number indicating height of the rectangle

width

A number indicating width of the rectangle

start

The start geom. Either "rect" or "ellipse"

end

The end geom. Either "rect" or "ellipse"

linetype

The linetype passed to geom_segment()

size

the size of geom_segment()

colour

the colour of geom_segment()

...

Other arguments passed on to geom_segment()


cardiomoon/semMediation documentation built on Nov. 16, 2023, 4:26 a.m.