matrixMainServer: Server module server for matrix with drilldown interaction

View source: R/matrixMain.R

matrixMainServerR Documentation

Server module server for matrix with drilldown interaction

Description

The matrix responds to reactive plot data and has a linked drilldown component.

Usage

matrixMainServer(
  id,
  mdata,
  colorscales = list(default = list(colorscale_named(pal = "RdBu"), zmin = -1, zmax =
    1), absolute = list(colorscale_heatmap_absolute, zmin = -1, zmax = 1))
)

Arguments

id

Character ID for specifying namespace, see shiny::NS.

mdata

Reactive matrix data from matrixCtrlServer.

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.

Details

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.


avucoh/DIVE documentation built on Aug. 29, 2023, 6:02 p.m.