我只运行我在与“direct.label”函数相关的文档中找到的代码。这是第一个例子:
library(ggplot2)
## direct label simple ggplot2 scatterplot
scatter <- qplot(jitter(hwy),jitter(cty),data=mpg,colour=class,
main="Fuel efficiency depends on car size")
print(direct.label(scatter))
结果我得到以下
proto出错(Geom,{:对象'Geom'未找到
任何想法???
PS我已经阅读了以下内容,但他们没有帮助...... "object not found" error when creating a new geom for a package; geom_rect failure: Error in eval(expr, envir, enclos) : object 'variable' not found; Object not found error with ggplot2; Error with insertSource(): "object '.cacheOnAssign' not found"; Fatal Error: Object scala not found