YuLab-SMU / ReactomePA

Reactome Pathway Analysis
https://yulab-smu.top/biomedical-knowledge-mining-book/
37 stars 10 forks source link

Cannot change cnetplot edge thickness and color #19

Open wasimaftab opened 6 years ago

wasimaftab commented 6 years ago

Dear Guangchuang, How to increase cnetplot edge thickness and change edge colour to black? I am using ReactomePA_1.24.0 on R version 3.5.1 (2018-07-02) Thanks Sincerely, Wasim

Prerequisites

Describe you issue

Ask in right place

gwangjinkim commented 6 years ago

You have to look into enrichplot package. Since in this package, enrichplot::cnetplot is used (thus this function is completely imported from enrichplot package.

There, I see, that through colorEdge= you can set the color of your edge. There, I see that geom_edge() is either geom_edge_arc() or geom_edge_line() from ggraph package. Which themselves use and pass ... to layer() - which takes color= and size= parameters. for thickness and color to layer().

gwangjinkim commented 6 years ago

as a temporary solution, you could overwrite the function definition.