Learn R Programming

linkeR (version 0.1.3)

smart_coordinate_lookup: Smart Coordinate-Based ID Lookup

Description

Enables automatic linking by matching clicked coordinates to data rows. This function is used during ID extraction when customdata/key parameters are not available, providing zero-configuration automatic linking.

Usage

smart_coordinate_lookup(data, clicked_x, clicked_y, id_column)

Value

The matched ID or NULL

Arguments

data

Data frame with the original data

clicked_x

X coordinate from plotly event

clicked_y

Y coordinate from plotly event

id_column

Name of the ID column