Description Usage Arguments Value Examples
A function to create a coordinates from a box draw in a trackJR_ggplot. While brushing in the plot a box you can move and drag the box until presh the "finish" bottom
1 | trackJR_box(trackJRgg, var_name)
|
trackJRgg |
A trackJR_ggplot. |
var_name |
A character vector with the name of the box wanted (i.e. "box1") |
The function return the object named with the coordinates for the box or region of interest. A data.frame with one observation in four variables (xmin,xmax,ymin,ymax)
1 2 3 | trackJR_box(graf2,"box1")
#Use it in a ggplot generated with trackJR_ggplot
graf2 + geom_rect(data = box1,...)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.