View source: R/scatterplotcontrols.R
scatterplotcontrols | R Documentation |
This module provides controls (2D/3D, axes etc) for scatter plots, which may then be used by one or more instances of the scatterplot module.
scatterplotcontrols(
input,
output,
session,
getDatamatrix,
x = NA,
y = NA,
z = NA,
makeColors = NULL
)
input |
Input object |
output |
Output object |
session |
Session object |
getDatamatrix |
Reactive expression that returns a matrix from which coulumn headers will be used to create axis select drop-downs. The same reactive should be supplied to the scatterplot module |
x |
A value supplied for this parameter will cause a hidden field to be generated instead of a select, useful for scatter plots that don't need the user to select axes (default: NA) |
y |
A value supplied for this parameter will cause a hidden field to be generated instead of a select, useful for scatter plots that don't need the user to select axes (default: NA) |
z |
A value supplied for this parameter will cause a hidden field to be generated instead of a select, useful for scatter plots that don't need the user to select axes (default: NA) |
makeColors |
Boolean: use controls for coloring? |
output A list of reactives for accessing input values
unpack.list(callModule(scatterplotcontrols, "pca", pcaMatrix, x = 1, y = 2)) # To have fixed axes rather than user-selected
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.