Returns distance from a point to the nearest boundary of a rectangle (plot). Accepts either separate x-y coordinates, or an object where x is first column, y is second. The lower left corner of the plot is assumed to be 0,0.
1 | border.distance(x, y, plotdim = c(1000, 500), pt = NULL)
|
x |
Coordinates. |
y |
Coordinates. |
plotdim |
The x and y dimensions of the plot. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.