Cowplot made ggplot2 theme disappear / How to see current ggplot2 theme, and restore the default?

耗尽温柔 提交于 2019-11-26 23:10:39

Note: this will no longer be an issue in the upcoming release of cowplot, where the default theme is not changed.


You can use theme_get() to see the current "default" theme.

You can use theme_set() to change the "default" theme.

Theme settings do not carry over sessions.

Usually, your default will be theme_grey, but cowplot feels it's necessary to change that into theme_cowplot. I really wish it didn't.

You can either use :: notation to completely avoid this, or you can load the package as:

library(cowplot)
theme_set(theme_grey())
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!