This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Complex Heatmap subscripts

Hello all

I love the package 'Complex Heatmaps' to draw heatmaps in R and I quit using Heatmap.2.

However in heatmap.2, I could use something like expression(paste) to get some words as subscripts.

main = expression(paste("Log[2]","(FPKM) Values"))

Unfortunately, expression doesn't seem to work in Complex Heatmap. Any of you Gurus can help me out with this?

Error in (function (cl, name, valueClass)  :  assignment of an object of class 揺xpression?is not valid for @憂ame?in an object of class 揌eatmap? is(value, "character") is not TRUE

I just want to use subscripts in titles in Complex Heatmap. Thanks!

complex heatmap subscript

Well, for me it works with column_title and not with name.

name = expression(log[2]~score),
column_title = expression(log[2]~score),

Yes, the tilde (~) is the space. It's not quite a formula but rather a mathematical expression.

0 answers

No answers yet.

Log in to answer this question.