自从安装了最新版本的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.
我有几个问题:
- 帮助(“贬抑”)返回
"no documentation for 'Depreciated' in specified packages and libraries"
; 这是一个错误? - 有一段时间,在这“贬抑”将变成“过时的”,我的代码将开始抛出错误?
- 如何更新我的代码(解决这些具体问题,并防止其他人仍然在等待被发现)?
- 我可以加载GGPLOT2的两个版本,并指定我使用每个功能的哪个版本?
- 在什么时间尺度可能更新过的语法过时了吗?
我承认,这是软件的一个常见问题,但也许有些贡献者等有具体的洞察更长期的计划和包的作者的理由。