Description Usage Arguments Value Examples
This function returns all rows from the input data frame with an additional column selected_, which indicates which rows of the input data frame are selected by the brush (TRUE for selected, FALSE for not-selected).The xvar, yvar arguments specify which columns in the data correspond to the x variable, y variable of the plot. Based on ggbrush by Joe Cheng.
1 |
plotExpr |
A ggplot object. |
allRows |
If FALSE (the default) return a data frame containing the selected rows. If TRUE, the input data frame will have a new column, selected_, which indicates whether the row was inside the brush (TRUE) or outside the brush (FALSE). |
A data frame
1 2 3 4 5 6 7 8 9 10 11 12 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.