ggbrush: Brush Points on ggplot of Data Frame Columns

Description Usage Arguments Details Examples

Description

This function takes a data frame and the names of two numeric columns, draws a plot, and allows the user to return the subset of the data.frame that have been highlighted in the plot.

Usage

1
ggbrush(dframe, xvar, yvar, viewer = paneViewer())

Arguments

dframe

A data frame with at least two numeric columns.

xvar

The column name from the data.frame of the x variable for plotting.

yvar

The column name from the data.frame of the y variable for plotting.

viewer

The viewer used by runGadget. Can also be dialogViewer or browserViewer. See viewer for more details.

Details

This function uses the miniUI package to form a small Gadget. After the correct subset of data is chosen, clicking "Done" will return the rows from the input data.frame via a call to stopApp.

Examples

1
2
data(mtcars)
ggbrush(mtcars,"disp","hp")

seandavi/BiocGadgets documentation built on May 29, 2019, 4:27 p.m.