YuLab-SMU / enrichplot

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

add color setting for add_node_label function #267

Closed yiluyucheng closed 2 weeks ago

yiluyucheng commented 10 months ago

Hi,

Thanks for developing the enrichplot package, I found it is very useful! When I was using the cnetplot function to plot Gene-Concept Network, I found there are no parameters to set the color of node labels. I wander would you consider adding a new parameter for this? Thanks.

Best, WYC

GuangchuangYu commented 2 weeks ago

Now you can use geom_cnet_label to adjust details for node labels.

library(ggtangle)
set.seed(123)
x <- list(A = letters[1:10], B=letters[5:12], C=letters[sample(1:26, 15)])

cnetplot(x, node_label = 'category') + geom_cnet_label(node_label = 'item', color='firebrick', size=10)

image

GuangchuangYu commented 2 weeks ago

see also https://github.com/YuLab-SMU/enrichplot/issues/266.