gpt4 book ai didi

r - initFields 中的 ggplot2 错误

转载 作者:行者123 更新时间:2023-12-04 15:02:33 26 4
gpt4 key购买 nike

来自包 ggplot2 的函数 ggplot2 给出了以下错误:

Error in initFields(scales = scales) : 
cannot find function "initRefFields"

浏览了其他列表,发现将 ggplot2 或 R 更新到 v.14.2 会使其工作,但是我两者都做了,但仍然不起作用。任何提示?有 session 信息:
谢谢!
> sessionInfo()
R version 2.14.2 (2012-02-29)
Platform: x86_64-pc-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=Spanish_Spain.1252 LC_CTYPE=Spanish_Spain.1252 LC_MONETARY=Spanish_Spain.1252
[4] LC_NUMERIC=C LC_TIME=Spanish_Spain.1252

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] plyr_1.7.1 ggplot2_0.9.0

loaded via a namespace (and not attached):
[1] colorspace_1.1-1 dichromat_1.2-4 digest_0.5.2 grid_2.14.0 MASS_7.3-16
[6] memoise_0.1 munsell_0.3 proto_0.3-9.2 RColorBrewer_1.0-5 reshape2_1.2.1
[11] scales_0.2.0 stringr_0.6 tools_2.14.0

最佳答案

不是特别满意,但我通过将 R 升级到 2.15 解决了这个问题。

编辑:根据@Brian Diggs 的说法,这是 2.14 中的一个已知问题,已在 2.14.1 中修复。

关于r - initFields 中的 ggplot2 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9863604/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com