Question: Complex Heatmap subscripts

0

Seigfried •

**70**wrote: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!

It appears to be supported: Mathematical Expression Causes Error #113

52kWell, for me it works with column_title and not with name.

70Thank you and apologies!

I got it to work in case i wanted multiple words in the subscript list(title = expression(log[hello~world]~Normalised~Values))

So I guess as usual [ ] denotes the start-end of the subscript. But I do not know why the tilde (~) is a substitute for a space

https://stackoverflow.com/questions/14976331/use-of-tilde-in-r-programming-language So it is a formula used as text?

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

52k