selectionRectangle: Selection rectangle

Description Usage Arguments Details

View source: R/interactive.R

Description

Draw rectangle above plot

Usage

1
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.


SWotherspoon/BAStag documentation built on March 29, 2021, 2:47 a.m.