View source: R/heatmap_server.R
heatmap_server | R Documentation |
Heatmap Server
heatmap_server(
id,
feature_sample_data_function,
response_sample_data_function,
feature_data,
response_data,
group_data,
summarise_function_list = shiny::reactive(stats::cor),
drilldown = shiny::reactive(F),
default_response = shiny::reactive(NULL),
default_class = shiny::reactive(NULL),
mock_event_data = shiny::reactive(NULL),
...
)
id |
Module ID |
feature_sample_data_function |
A shiny::reactive that returns a function The function must take an argument called ".feature_class" and return a dataframe with columns "sample_name", "group_name", "dataset_name", "feature_name", and "feature_value" |
response_sample_data_function |
A shiny::reactive that returns a function The function must take an argument called ".feature" and return a dataframe with columns "sample_name", "feature_name", "feature_value" |
feature_data |
A shiny::reactive that returns a dataframe with columns "feature_name","feature_display", "feature_class", and "feature_order". Each value in the "feature_name" column should only appear once. |
response_data |
A shiny::reactive that returns a dataframe with columns "feature_name","feature_display", and optionally "feature_class. Each value in the "feature_name" column should only appear once. |
group_data |
A shiny::reactive that returns a dataframe with columns "group_name", "group_display", and optionally "group_description" and "group_color". Each value in the "group_name"column should only appear once. |
summarise_function_list |
A shiny::reactive that returns a either a function or a named list of functions. If a list is passed, it will be passed to shiny::selectInput. Each function must take vectors. The first one will be the "feature_value" column of feature_data_function, and the second will be the "feature_value" of repsonse_data_function. Each function must return one numeric value. |
drilldown |
A shiny::reactive that returns True or False |
default_response |
A shiny::reactive that returns a string that is one of the values in the response_data feature_name column |
default_class |
A shiny::reactive that returns a string that is one of the values in the feature_data feature_class column |
mock_event_data |
A shiny::reactive that returns a dataframe. For testing purposes only. Must have columns "curveNumber", "pointNumber", "x", "y", and "z". The "x" column corresponds to the group selected, and the "y" column corresponds to feature selected. |
... |
arguments sent to plotly_scatter |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.