-
Notifications
You must be signed in to change notification settings - Fork 66
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
unexpected change of default colors/theme with enrichplot #268
Comments
This is also a relevant question for me, especially on how to get the dots in the legend (representing the count) filled again... @huerqiang , @GuangchuangYu : would you mind explaining? Thanks! Setting/reverting the color scale can thus be done by adding this line before you call the ... but how to revert to have the dots in the legend 'filled' again? Which |
@adalgarno As guidohooiveld said, |
@huerqiang : thanks for your prompt response! To illustrate my point I have included 2 graphs below. The first (combined) one has been generated using the current versions of The second plot has been generated using old versions of
|
That is beacuse we changed the default shape of the point from solid to hollow. If you want to change the original shape, you can set it like this: library(ggplot2)
library(DOSE)
data(geneList)
de <- names(geneList)[1:100]
x <- enrichDO(de)
dotplot(x) +
aes(shape = I(16)) +
aes(color = p.adjust) +
set_enrichplot_color(type = "color", name = "p.adjust")
|
Yep, that code is indeed doing what I was looking for. Thanks for the explanation and quick reply! |
Yes, this code seems to have reverted the plots. Thank you for your help! |
My supervisor hates default R colours and likes pastels like those used in Nature journal plots. The new default is liked by her. |
I am having a similar issue to the one described here (https://support.bioconductor.org/p/9155167/#9155178). The default theme for the dotplots, etc. seems to have changed. Is there a way to revert it to the older theme? I tried the fix mentioned in the post but it had no effect.
Thanks!
The text was updated successfully, but these errors were encountered: