[R] R 14.0, ggplot2: could not find function "initRefFields"

J. R. M. Hosking JRMHosking at gmail.com
Tue Apr 2 16:07:55 CEST 2013


On 2013-04-02 04:28, Frans Marcelissen wrote:
> Hi,
> I have a problem combining R and SPSS (21). I do not know whether the
> solution is in R or in spss, so I will post both in the R group and in the
> SPSS group.
>
> I use the R plugin in spss(21). The most important reason to use this
> plugin is ggplot2 (spss does not have a decent graphical system). This

Huh?  IBM SPSS Statistics has a Graphics Production Language that its 
reference guide describes as "a concise and flexible language based on 
the grammar described in [Leland Wilkinson's book] *The Grammar of 
Graphics*".  ggplot2 is "an implementation of the Grammar of Graphics". 
  It seems likely that whatever you were hoping to achieve with ggplot2 
can also be done natively in SPSS.


J. R. M. Hosking




> plugin requires R 14.0 (14.2 or 15 does not work).
> When I install R it gives an warning:
>> library(ggplot2)
> Warning message:
> package ‘ggplot2’ was built under R version 2.14.2
>
> After that, when i use gplot2:
>> ggplot()+geom_bar(aes(x=factor(1),y=10))
> Error in initFields(scales = scales) :
>    could not find function "initRefFields"
>
> I found on internet that the solution for this problem is upgrading to a
> newer version of R (and indeed, on 2.15 or 3.0 ggplot2 works fine). spss
> needs 2.14.0, however.
> Does anyone know a solution?
> Thanks
> Frans
>
> 	[[alternative HTML version deleted]]
>
>
>
>



More information about the R-help mailing list