coord_to_px | R Documentation |
Helper map user's coordinates to pixels
coord_to_px(coord, coordmap, pntsonedge = FALSE)
coord |
coordinates in user system. A matrix where rows are points and with at least 2 columns named "x" and "y" for x and y coordinates, respectively. |
coordmap |
current device adjusted coordinates. Default is missing. |
pntsonedge |
whether points outside of plotting region should be bounded on the edge. Default is FALSE to clip points. |
a 2-columns matrix with "x" and "y" coordinates.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.