s.plot: shinypipe server function for creating a plot with zoom and...

Description Usage Arguments Value

View source: R/p_plot.R

Description

shinypipe server function for creating a plot with zoom and pan functions

Usage

1
2
s.plot(input, output, session, plot, data, mapping = reactive(aes()),
  selected.colname = NULL)

Arguments

input

shiny input

output

shiny output

session

shiny session

plot

'reactive' plot object that will be appended to a ggplot object

data

'reactive' data.table to be passed to ggplot2::ggplot. Note that this cannot be NULL as this data is used to deduce types based on the columns plotted. If more than one data source is needed for your plots, pass in the primary data table.

mapping

'reactive' mapping passed to ggplot2::ggplot [Default: reactive(aes())]

selected.colname

col name for the additional column that indicates whether the row is selected (within the brushed region) or not. If NULL is provided, only selected columns will be returned [Default: NULL]

Value

The original data with an additional column with the name given by selected.colname which is true for points under a brush


rajkar86/shinypipe documentation built on Aug. 22, 2021, 9:48 p.m.