heatmap.with.wordcloud | R Documentation |
Plot heatmap while perform word cloud analysis
heatmap.with.wordcloud(df)
df |
row is sample, column is gene. Will perform gene correlation analysis instead of sample-wise |
# https://jokergoo.github.io/simplifyEnrichment/articles/word_cloud_anno.html
df = data.frame(`a b c dd` = c(1,2,1,1,1), `a d c bb a c` = c(3,2,3,1,1), `bb aa cc dd` = c(4,2,5,7,6))
M = cor(df)
# show correlation
corrplot(M, method = 'number', order = 'hclust')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.