Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

InBox

Checks if a point is inside a box.


Description

Checks if a point is inside a box. The point is specified bi its x and y coordinates and the bom with the minimum and maximum values on both coordinate axis: xmin, xmax, ymin, ymax. The vertices of the box are then (xmin, ymin), (xmax, ymin), (xmax, ymax) and (xmin, ymax)

Usage

InBox(x, y, xmin, xmax, ymin, ymax)

Arguments

x

x coordinate of the point

y

x coordinate of the point

xmin

minimum value of X

xmax

maximum value of X

ymin

minimum value of Y

ymax

maximum value of Y

Value

Returns a logical value : TRUE if the point is inside the box and FALSE otherwise.

Author(s)

Jose Luis Vicente Villardon

Examples

InBox(0, 0, -1, 1, -1, 1)

MultBiplotR

Multivariate Analysis Using Biplots in R

v1.3.30
GPL (>= 2)
Authors
Jose Luis Vicente-Villardon
Initial release
2021-03-30

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.