Learn R Programming

ggrepel (version 0.4)

point_within_box: Test if a point is within the boundaries of a box.

Description

Test if a point is within the boundaries of a box.

Usage

point_within_box(p, b)

Arguments

p
A point like c(x, y)
b
A numeric vector representing a box like c(x1, y1, x2, y2)