egeulgen / pathfindR

pathfindR: Enrichment Analysis Utilizing Active Subnetworks
https://egeulgen.github.io/pathfindR/
Other
178 stars 25 forks source link

Legend title in the term_gene_heatmap #112

Closed zillurbmb51 closed 2 years ago

zillurbmb51 commented 2 years ago

Hi,

How can I change/create custom legend title in the term_gene_heatmap?

I have the attached df as input. I need to label the color indicates in the right side of the attached figure.

How could I do this? So far, I have tried with +labs (color='title') , + guides(color=guide_legend("MaxCADD")) and + legend_title('MaxCADD') but got no result. Any help? conjFDR_0 05_SCZ_vs_BASOPHIL_PATH example_input_df.csv

R version 4.1.2 (2021-11-01) and Package pathfindR version 1.6.3.9002

egeulgen commented 2 years ago

the above fix (pathfindR 1.6.3.9003) resolves this issue. I introduced a new argument to term_gene_heatmap() called legend_title. Which is "change" by default but you can change it to "MaxCADD" or whatever you wish

zillurbmb51 commented 2 years ago

Thanks.