View source: R/splot-geometry.R
| cent_to_edge | R Documentation |
Given a node center, size, and angle, calculates the point on the node boundary. Works with various shapes.
cent_to_edge(x, y, angle, cex, cex2 = NULL, shape = "circle")
x |
Node center x coordinate. |
y |
Node center y coordinate. |
angle |
Angle in radians. |
cex |
Node size (radius in user coordinates). |
cex2 |
Secondary size for ellipse width (NULL for square aspect). |
shape |
Node shape: "circle", "square", "ellipse", or polygon name. |
List with x, y coordinates on boundary.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.