Given a set of markers, plot their expression across clusters on a heatmap.
PlotClusterExpression( data, cluster_labels, y_lsize = (length(unique(cluster_labels))/8) * 7, y_tsize = (length(unique(cluster_labels))/8) * 7, x_lsize = (length(unique(cluster_labels))/8) * 7, x_tsize = (length(unique(cluster_labels))/8) * 7, lti_size = (length(unique(cluster_labels))/8) * 7, lt_size = (length(unique(cluster_labels))/8) * 7, markers, 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 |
y_lsize | y axis label size |
y_tsize | y axis title size |
x_lsize | x axis label size |
x_tsize | x axis title size |
lti_size | size of legend title |
lt_size | size of legend text |
markers | a vector of markers |
use_z | use z-score per gene instead of raw expression |
a grid plot