View source: R/utils_objects.R
plot_bbox | R Documentation |
This function overlays bounding boxes onto an existing plot.
plot_bbox(bbox_list, col = "red")
bbox_list |
A list of bounding boxes, as returned by |
col |
The color for the bounding boxes. Defaults to |
None (adds bounding boxes to an existing plot).
if(interactive()){
plot(NA,
xlim = c(0, 200),
ylim = c(0, 200),
asp = 1)
contours <- list(
matrix(c(10, 20, 30, 40, 50, 60, 70, 80, 90, 100,
110, 120, 130, 140, 150, 160, 170, 180, 190, 200),
ncol = 2, byrow = FALSE)
)
bbox_list <- object_bbox(contours)
plot_bbox(bbox_list)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.