【发布时间】:2012-12-07 15:14:30
【问题描述】:
我什至不知道我是如何以及为什么从 ggplot 包中的任何命令接收所有这些输出的,我尝试重新安装 R 包,但到目前为止没有任何效果。
> library(ggplot2)
> qplot(x=1:10, y=1:10)
The following `from` values were not present in `x`: col, color, pch, cex, lty, lwd, srt, adj, bg, fg, min, max
The following `from` values were not present in `x`: col, color, pch, cex, lty, lwd, srt, adj, bg, fg, min, max
The following `from` values were not present in `x`: col, color, pch, cex, lty, lwd, srt, adj, bg, fg, min, max
The following `from` values were not present in `x`: col, color, pch, cex, lty, lwd, srt, adj, bg, fg, min, max
The following `from` values were not present in `x`: col, color, pch, cex, lty, lwd, srt, adj, bg, fg, min, max
这是我的会话信息。
> sessionInfo()
R version 2.15.2 (2012-10-26)
Platform: x86_64-w64-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] ggplot2_0.9.3
loaded via a namespace (and not attached):
[1] colorspace_1.2-0 dichromat_1.2-4 digest_0.6.0 grid_2.15.2 gtable_0.1.2
[6] labeling_0.1 MASS_7.3-22 munsell_0.4 plyr_1.8 proto_0.3-9.2
[11] RColorBrewer_1.0-5 reshape2_1.2.2 scales_0.2.3 stringr_0.6.2 tools_2.15.2
【问题讨论】:
-
这是来自一个干净的 R (
--vanilla) R 会话吗?你试过install.packages(ggplot2,depend=TRUE)吗?我有gridv 2.16.0 ...也许还有其他一些包不匹配,因为这是ggplot2的全新版本? -
是的,我正在运行 vanilla
R会话。我尝试安装依赖项,但似乎没有成功。我知道您提供的链接中的信息,但它并没有真正回答我的问题,因为在我的情况下,ggplot2和plyr都不是开发版本。 -
好的,我刚刚更新到
plyr1.8(从 1.7.1)并且能够重现您的问题(Ubuntu 12.04)。听起来是时候报告错误/问题了... -
@hadley:即使重新安装也会再次产生同样的错误。