YuLab-SMU / enrichplot

Visualization of Functional Enrichment Result
https://yulab-smu.top/biomedical-knowledge-mining-book/
232 stars 65 forks source link

wrap string #136

Closed GuangchuangYu closed 3 years ago

GuangchuangYu commented 3 years ago
library(ReactomePA)
y <- enrichPathway(de)

## fail to wrap string
p1 <- dotplot(y, label_format = 20)
## works
p2 <- dotplot(y, label_format = function(x) stringr::str_wrap(x, width=20))

We need to update https://github.com/YuLab-SMU/enrichplot/blob/master/R/utilities.R#L318-L341 to fix this issue.

see also https://github.com/YuLab-SMU/enrichplot/pull/73.

huerqiang commented 3 years ago

好的,老师,我今天晚点去修改一下。

GuangchuangYu commented 3 years ago

https://github.com/YuLab-SMU/enrichplot/pull/137.