自从安装最新版本的ggplot2(0.9.1)以来,我一直从旧代码中获取消息,包括:
> warnings()
Warning messages:
1: 'opts' is deprecated.
Use 'theme' instead.
See help("Deprecated")
2: 'theme_text' is deprecated.
Use 'element_text' instead.
See help("Deprecated")
8: In opts(title = trait axis.text.x = theme_text(size = fontsize$axis), ... :
Setting the plot title with opts(title="...") is deprecated. Use labs(title="...") or ggtitle("...") instead.
9: 'opts' is deprecated.
Run Code Online (Sandbox Code Playgroud)
我有几个问题:
"no documentation for 'Depreciated' in specified packages and libraries"; 这是一个错误吗?我接受这是软件的一个常见问题,但也许SO的一些贡献者对包的作者的长期计划和基本原理有具体的了解.
Dav*_*uer 15
来自Winston的github wiki,主要变化是:
theme_xx() 功能改为 element_xx()
theme_segment() 纳入 theme_line()
opts() 变成 theme()opts(title = "mytitle") 变成 labs(title = "mytitle") ggtitle("mytitle")与#3相同