trackJR_box: trackJR_box

Description Usage Arguments Value Examples

Description

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

Usage

1
trackJR_box(trackJRgg, var_name)

Arguments

trackJRgg

A trackJR_ggplot.

var_name

A character vector with the name of the box wanted (i.e. "box1")

Value

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)

Examples

1
2
3
trackJR_box(graf2,"box1")
#Use it in a ggplot generated with trackJR_ggplot
graf2 + geom_rect(data = box1,...)

Gdlv/trackJR documentation built on June 24, 2021, 2:06 p.m.