-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
change the color of nodes and edges in cnetplot and emapplot #66
Comments
Hi Silvernano, I just checked a snipped of the source code for the cnetplot function and the plot you create is basically a ggplot object. Hence you can modify the plot with any extension available for ggplot2. Here is an example for how is used
I hope this is of help for you :) |
I wasn't able to figure out how to use that |
see example in https://github.com/YuLab-SMU/supplemental-clusterProfiler-v4. |
Dear Professor @GuangchuangYu ,
And this is the code for the plot. (Some parameters, such as
The following plot is produced when I set |
@GuangchuangYu and @MrModenait , Hi all, Best, |
Hey @adesalegn, I haven't compiled an answer as I don't know how to achieve your result. Perhaps using |
Hi, if people are still struggling with changing the node color, I believe I have a workable solution with example data to test it. You need to change the color location in two different places to get the nodes to change. I'm not exactly sure why that is the case, but this at least works for me.
|
following the link of https://support.bioconductor.org/p/p133748/, successfully changed the color of gene labeling with a code: cnetplot(data, categorySize="padj", foldChange=geneList) + scale_color_gradientn(colours = c("blue", "red")) |
Hi, is it possible to change the node color in emapplot? Also the cnetplot has default color red and green for the edges, can I change those to different colors, as the color blindness issue. Thank you!
The text was updated successfully, but these errors were encountered: