ndcClosest: Graphics coordinate conversion

Description Usage Arguments Details Value

View source: R/interactive.R

Description

Convert ndc coordinates

Usage

1
2
3
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


SWotherspoon/BAStag documentation built on March 29, 2021, 2:47 a.m.