matrixMainServer | R Documentation |
The matrix responds to reactive plot data and has a linked drilldown component.
matrixMainServer(
id,
mdata,
colorscales = list(default = list(colorscale_named(pal = "RdBu"), zmin = -1, zmax =
1), absolute = list(colorscale_heatmap_absolute, zmin = -1, zmax = 1))
)
id |
Character ID for specifying namespace, see |
mdata |
Reactive matrix data from |
colorscales |
Optional, a list of custom colorscale functions that takes a numeric matrix and returns either a named colorscale or custom colorscale used for heatmap. If not given, two default colorscale functions are used. |
The module handles interactive display of a matrix linked to a scatterplot
that accesses underlying data for a user-clicked cell.
It works with matrixCtrlServer
, which returns the data object.
Generally, this module only handles visualization of a matrix
while the actual matrix generation can be handled by other modules that feed into it.
For the drilldown component that displays underlying data points,
the statistical data type (numeric vs. ordinal) matters and may require
specifying aesthetic parameters for best representation and consistency across modules.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.