PomaHeatmap: Heatmap Plot

View source: R/PomaHeatmap.R

PomaHeatmapR Documentation

Heatmap Plot

Description

PomaHeatmap generates a heatmap.

Usage

PomaHeatmap(
  data,
  covs = NULL,
  sample_names = TRUE,
  feature_names = FALSE,
  show_legend = TRUE
)

Arguments

data

A SummarizedExperiment object.

covs

Character vector. Indicates the names of colData columns to be included as covariates. Default is NULL (no covariates).

sample_names

Logical. Indicates if sample names should be displayed or not. Default is TRUE.

feature_names

Logical. Indicates if feature names should be displayed or not. Default is FALSE.

show_legend

Logical. Indicates if legend should be displayed or not. Default is TRUE.

Value

A heatmap plot.

Author(s)

Pol Castellano-Escuder

Examples

data("st000284")

# Basic heatmap
st000284 %>% 
  PomaNorm() %>% 
  PomaHeatmap()
  
# Heatmap with one covariate  
st000284 %>% 
  PomaNorm() %>% 
  PomaHeatmap(covs = "factors")
  
# Heatmap with two covariates
st000284 %>% 
  PomaNorm() %>% 
  PomaHeatmap(covs = c("factors", "smoking_condition"))

pcastellanoescuder/POMA documentation built on March 15, 2024, 10:08 p.m.