selectionRectangle: Selection rectangle

View source: R/interactive.R

selectionRectangleR Documentation

Selection rectangle

Description

Draw rectangle above plot

Usage

selectionRectangle(x1, x2, col, add = FALSE)

Arguments

x1

coordinates of the left boundaries of rectangles

x2

coordinates of the right boundaries of rectangles

col

rectangle colours

add

add rectangles to existing rectangles.

Details

Draws a sequence of rectangles above a plot to indicate sections of the data that have been selected. Drawing the rectangle above the plot means the selection can be updated without having to redraw the main plot.


slisovski/TwGeos documentation built on Jan. 27, 2024, 10:43 a.m.