I'm encountering an unexpected error while using a simple ggplot command, and I have exhausted all my web-searches to find a similar issue.
qplot(hp,mpg,data=mtcars)
Error in list2env(members, envir = e) :
names(x) must be a character vector of the same length as x
The same applies when using ggplot...
ggplot(mtcars, aes(hp,mpg)) + geom_point()
Error in list2env(members, envir = e) :
names(x) must be a character vector of the same length as x
I've never had this issue in the past although I am using ggplot after a while.
I'm running R 3.1.1 , any help would be much appreciated!
Updated: sessionInfo
sessionInfo()
R version 3.1.1 (2014-07-10)
Platform: i386-w64-mingw32/i386 (32-bit)
locale:
[1] LC_COLLATE=English_Australia.1252 LC_CTYPE=English_Australia.1252
LC_MONETARY=English_Australia.1252 LC_NUMERIC=C
LC_TIME=English_Australia.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] ggplot2_2.0.0
loaded via a namespace (and not attached):
[1] digest_0.6.8 htmltools_0.2.6 httpuv_1.3.3 jsonlite_0.9.19 mime_0.4
R6_2.1.1 Rcpp_0.12.2 tools_3.1.1 xtable_1.8-0
Cheers
It works when I updated R to 3.2.3
That required a few administrative requests (work machine) but it's all sorted now.
sessionInfo()
R version 3.2.3 (2015-12-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
locale:
[1] LC_COLLATE=English_Australia.1252 LC_CTYPE=English_Australia.1252
LC_MONETARY=English_Australia.1252
[4] LC_NUMERIC=C LC_TIME=English_Australia.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] ggplot2_2.0.0
loaded via a namespace (and not attached):
[1] labeling_0.3 colorspace_1.2-6 scales_0.3.0 plyr_1.8.3
tools_3.2.3 gtable_0.1.2 Rcpp_0.12.2 grid_3.2.3
[9] munsell_0.4.2
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With