R ggplot2:为什么我得到错误“f中的错误(...,self = self):尝试应用非功能”?

时间:2017-04-14 10:08:20

标签: r ggplot2

我试图测试ggbeeswarm包。

不幸的是,当我运行以下命令时出现错误。 为什么我会收到此错误?

R version 3.2.4 Revised (2016-03-16 r70336) -- "Very Secure Dishes"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> require(ggbeeswarm)
Loading required package: ggbeeswarm
Loading required package: ggplot2
Warning messages:
1: package ‘ggbeeswarm’ was built under R version 3.2.5 
2: package ‘ggplot2’ was built under R version 3.2.5 
> ggplot(iris,aes(Species, Sepal.Length)) + geom_quasirandom()
Error in f(..., self = self) : attempt to apply non-function

1 个答案:

答案 0 :(得分:1)

您必须将R更新为3.2.5或更高版本。过去有这个错误。