This draws a dashed connection between two points, curving it so that it goes through a third point.
This is internally used by dag.draw
to draw associations.
smoothArc(A, B, C, res = 20, gap = 0.05, p = FALSE)
Vector of length 2, providing xy coordinates of first point.
Vector of length 2, providing xy coordinates of second point.
Vector of length 2, indicating xy coordinates through which the association should be curved.
How smooth should the curve be drawn?
How far from point A and B should the line end?
If TRUE, the point through which the curve goes is drawn (this is to allow better moving it with dag.move
).
Lutz P Breitling <l.breitling@posteo.de>
Breitling LP (2010). dagR: a suite of R functions for directed acyclic graphs. Epidemiology 21(4):586-587.
dag.draw
, dag.move