selectionRectangle | R Documentation |
Draw rectangle above plot
selectionRectangle(x1, x2, col, add = FALSE)
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. |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.