#'@export
plot_cluster_MFIs <- function(fsom, names = NULL){
MFIs <- GetMFIs(fsom)[, fsom$map$colsUsed]
plot_MFIs(MFIs, fsom, names)
}
#'@export
plot_metacluster_MFIs <- function(fsom, names = NULL){
MFIs <- MetaclusterMFIs(fsom)[, fsom$map$colsUsed]
plot_MFIs(MFIs, fsom, names)
}
plot_MFIs <- function(MFIs, fsom, names){
colnames(MFIs) <- fsom$prettyColnames[fsom$map$colsUsed]
if(!is.null(names)) rownames(MFIs) <- paste0(rownames(MFIs), " (", names, ")")
pheatmap::pheatmap(MFIs)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.