PlotTopN: Heatmap of the top n markers

View source: R/PlottingFunctions.R

PlotTopNR Documentation

Heatmap of the top n markers

Description

Plot the heatmap of the top n inferred markers for each cluster.

Usage

PlotTopN(
  data,
  cluster_labels,
  markers,
  n_features,
  y_lsize = ((length(unique(cluster_labels)) * n_features)/120) * 5,
  y_tsize = ((length(unique(cluster_labels)) * n_features)/120) * 15,
  x_lsize = ((length(unique(cluster_labels)) * n_features)/120) * 14,
  x_tsize = ((length(unique(cluster_labels)) * n_features)/120) * 15,
  use_z = TRUE
)

Arguments

data

expression data with genes x cells

cluster_labels

a vector of cluster labels corresponding to the columns in the data matrix

markers

a table of markers

n_features

the top n features to plot

y_lsize

y axis label size

y_tsize

y axis title size

x_lsize

x axis label size

x_tsize

x axis title size

use_z

use z-score per gene instead of raw expression

Value

a heatmap


mkarikom/RSoptSC documentation built on May 10, 2023, 1:10 a.m.