ndcClosest | R Documentation |
Convert ndc coordinates
ndcClosest(x, y, xs, ys)
ndcTsimageDate(x, y)
x |
ndc x coordinate |
y |
ndc y coordinate |
xs |
points user x coordinates |
ys |
points user y coordinates |
Given user coordinates of a sequence of points and the ndc
coordinates (x,y), ndcClosest
returns the index of the
closest point to (x,y). Given the ndc coordinates of a pixel in a
tsimage plot, ndcTsimageDate returns the date of the pixel.
index of closest point
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.