YuLab-SMU / biomedical-knowledge-mining-book

:books: Biomedical knowledge mining using GOSemSim and clusterProfiler
https://yulab-smu.top/biomedical-knowledge-mining-book/
69 stars 27 forks source link

Problem with text position in treeplot #12

Closed DaiqingChen closed 2 years ago

DaiqingChen commented 2 years ago

I was trying to plot a treeplot for the GOs, but the circle in front of every row is blocking the content. I am also having problem adjusting the position of cluster name on the right. I tried to adjust the text by 'label_format' and 'offset', but it's not very helpful. Is there a way to show the full content of cluster names and remove the circle in front of each row?

This is how my plot look like: GO in WT_ColdvsKO_Cold

This is the code I used: treeplot(ego_WT_ColdvsKO_Cold, label_format = 25,fontsize = 4,offset = 3)

GuangchuangYu commented 2 years ago

@huerqiang two features requested:

  1. label on top
  2. support passing rel object to offset. (see ?ggplot2::rel).
GuangchuangYu commented 2 years ago

solved, see https://github.com/YuLab-SMU/enrichplot/pull/175.