clip_lines | R Documentation |
Clip lines so they don't run into a set of boxes. Useful for labeling isolines, as it allows removal of line segments that would run into any text labels.
clip_lines(x, y, id, clip_boxes, asp = 1)
x |
Numeric vector of x coordinates |
y |
Numeric vector of y coordinates |
id |
Integer vector of id numbers indicating which lines are connected |
clip_boxes |
Data frame specifying the locations of boxes to clip to.
Should have five columns, named |
asp |
Aspect ratio (width/height) of the target canvas. This is used to convert widths to heights and vice versa for rotated boxes |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.