错误:找不到函数“ggplot” [英] Error: could not find function "ggplot"

查看:2463
本文介绍了错误:找不到函数“ggplot”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了ggplot和ggplot2以及它们的依赖关系。



感谢您的帮助。

解决方案

试试:

$ p $ library(ggplot2)

即使安装了一个包,每次加载R时都必须加载一个包。



问题在r-faq中得到全面回答:

错误:无法在R中找到函数


I have installed ggplot and ggplot2 and their dependencies.

thanks for help.

解决方案

Try:

library(ggplot2)

Even after installing a package, you have to load a package each time you load R.

This question is answered comprehensively in the r-faq:

Error: could not find function ... in R

这篇关于错误:找不到函数“ggplot”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆