mod_scatterplot_server: Scatterplot module server-side processing

Description Usage Arguments Value

View source: R/mod_scatterplot.R

Description

This module produces a scatterplot with the sales price against a variable selected by the user.

Usage

1
2
3
4
5
6
7
8
9
mod_scatterplot_server(
  input,
  output,
  session,
  dataset,
  plot1vars,
  plot2vars,
  label = reactive(FALSE)
)

Arguments

input, output, session

standard shiny boilerplate.

dataset

data frame (non-reactive) with variables necessary for scatterplot.

plot1_vars

reactive list of plot 1 x variable, y variable, and grouping variable.

plot2_vars

reactive list of plot 2 x variable, y variable, and grouping variable.

highlight_ind

boolean indicating whether to perform annotation of data points on the plot. Default is FALSE.

Value

list with following components:

plot_data

reactive data frame containing only the xvar and yvar variables

.

plot_object

reactive ggplot2 object for the scatterplot

.


MayaGans/golem_demo documentation built on May 14, 2020, 12:32 a.m.