View source: R/PlottingFunctions.R
PlotTopN | R Documentation |
Plot the heatmap of the top n inferred markers for each cluster.
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
)
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 |
a heatmap
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.