heatmap: The server function of the heatmap module

View source: R/heatmap.R

heatmapR Documentation

The server function of the heatmap module

Description

Three types of heatmaps are provided, employed in various places in the rnaseq app (for example), and using much of the same code. Expresssion heatmaps plot expression for samples by column and e.g. genes by row. A samples heatmap plots samples vs samples to illustrate correlation patterns. A pca heatmap plots the results of anova tests applied to examine the associations between principal components and experimental variables.

Usage

heatmap(input, output, session, eselist, type = "expression")

Arguments

input

Input object

output

Output object

session

Session object

eselist

ExploratorySummarizedExperimentList object containing ExploratorySummarizedExperiment objects

type

The type of heatmap that will be made. 'expression', 'samples' or 'pca' (default: 'expression')

Details

This function is not called directly, but rather via callModule() (see example).

Examples

callModule(heatmap, "heatmap", eselist, type = "pca")

# Almost certainly used via application creation

data(zhangneurons)
app <- prepareApp("heatmap", zhangneurons)
shiny::shinyApp(ui = app$ui, server = app$server)


pinin4fjords/shinyngs documentation built on Jan. 18, 2025, 7:09 p.m.