ndcClosest: Graphics coordinate conversion

View source: R/interactive.R

ndcClosestR Documentation

Graphics coordinate conversion

Description

Convert ndc coordinates

Usage

ndcClosest(x, y, xs, ys)

ndcTsimageDate(x, y)

Arguments

x

ndc x coordinate

y

ndc y coordinate

xs

points user x coordinates

ys

points user y coordinates

Details

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.

Value

index of closest point


slisovski/TwGeos documentation built on Jan. 27, 2024, 10:43 a.m.