
Classify Coordinates into Focus, Glue, or Context Zones
classify_zones.RdAssigns each point to one of three zones based on its radial distance from a specified center:
focus: inside the inner radius
r_inglue: between
r_inandr_outcontext: outside
r_out
This is a helper for visualizing and analyzing fisheye transformations using the Focus–Glue–Context (FGC) model.
Arguments
- coords
A numeric matrix or data frame with at least two columns representing
(x, y)coordinates.- cx, cy
Numeric. The x and y coordinates of the fisheye center (default = 0, 0).
- r_in
Numeric. Inner radius of the focus zone (default = 0.34).
- r_out
Numeric. Outer radius of the glue zone (default = 0.5).
Value
A character vector of the same length as nrow(coords),
with values "focus", "glue", or "context".