add turn between two nodes in the y-direction

turny(
  from,
  mid_y,
  to,
  label = NULL,
  pos_from = NULL,
  pos_to = NULL,
  label_pos = NULL,
  label_gap = NULL,
  label_x = NULL,
  label_y = NULL,
  arr_width = NULL,
  name_from = deparse(substitute(from)),
  name_to = deparse(substitute(to)),
  ...
)

Arguments

from

start node

mid_y

the y co-ordinate of the mid flow

to

the end node

label

label to draw on the mid flow

pos_from

a decimal between 0 and 1 giving the position to start the flow out of from, where 0 = left and 1 = right

pos_to

a decimal between 0 and 1 giving the position to attach the flow to node to, where 0 = left and 1 = right

label_pos

a decimal between 0 and 1 giving the position along the mid flow to draw label, where 0 = left and 1 = right

label_gap

distance from the mid flow at which to draw label default = 0.05

label_x

x co-ordinate of label position, overrides use of label_pos

label_y

y co-ordinate of label position, overrides use of label_gap

arr_width

width of arrow, defaults to same as flow()

name_from

internal argument used for informative error messages

name_to

internal argument used for informative error messages

...

additional formatting arguments to flow()

Value

returns the start and end points of the flow