Description Usage Arguments Value
View source: R/mod_scatterplot.R
This module produces a scatterplot with the sales price against a variable selected by the user.
1 2 3 4 5 6 7 8 9 | mod_scatterplot_server(
input,
output,
session,
dataset,
plot1vars,
plot2vars,
label = reactive(FALSE)
)
|
input, output, session |
standard |
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 |
list with following components:
reactive data frame containing only the xvar
and yvar
variables
.
reactive ggplot2
object for the scatterplot
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.