Open eileen316 opened 5 years ago
I am in the same situation, Waiting the solutions.
I have the same problem. Waiting for the advice~
I am in the same situation. I am performing comparative analysis and showing two cnet plots, these looks very nice side-by-side with two different treatments, but when I am comparing foldchange values, the different scale makes is so annoying. Also, reviewer did not like the different scale. It would be great to add min/max scale limits. Please advice.
Never mind! I was able to achieve this using ggplot
features. Hope the code below will help others:
library(RColorBrewer)
RYD = brewer.pal(n = 8, name = "RdYlBu")
cnetplot(GO.BP, showCategory = Go_select, colorEdge = TRUE, foldChange=log2fc__vec) +
scale_colour_gradientn(colours = RYD, limits=c(-6, 6))
ggtitle("Condition A") +
theme(plot.title = element_text(size = 20, face = "bold", hjust = 0.5))
In cnetplot, I want to change foldchange scale. please give an advise~