brushed_data: Filter data frame based on plot brush

Description Usage Arguments Details Value Examples

Description

This function filters data frame rows to a subset corresponding to observations included in the brushed region of a plot.

Usage

1
brushed_data(data, variable, x, brush)

Arguments

data

data frame.

variable,

character, name of x-axis variable in data. May be numeric or categorical.

x

x coordinates. See details.

brush

brushed coordinates. See details.

Details

This implementation is for brushing restricted to the x-axis. #' x and brush are commonly reactive values in server.R, storing the observed click and brush coordinates in input, rather than the input objects directly.

Value

a data frame.

Examples

1
#not run

leonawicz/apputils documentation built on May 13, 2019, 1:38 a.m.