gpt4 book ai didi

linux - 无法在 linux mint 15 32 位上安装 R 包

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:58:10 26 4
gpt4 key购买 nike

我正在尝试安装 de ggplot 库,所以我使用了这个命令

 install.packages('ggplot2', dependencies = TRUE)

当我编写 library(ggplot2) 时,没有任何反应,也没有错误消息,所以我认为安装过程有效,但是当我尝试使用 gplot 函数时,我得到了这个:

 Error: could not find function "gplot"

我尝试以 super 用户身份打开 R Studio 并再次安装,还尝试从 tar.gz 包安装库,但我总是遇到完全相同的错误。

提前致谢

最佳答案

实际上函数是“qplot”而不是 gplot。

引用访问: https://cran.r-project.org/web/packages/ggplot2/ggplot2.pdf

然后转到第 145 页并查看 qplot(快速绘图):

用法:

qplot(x, y = NULL, ..., data, facets = NULL, margins = FALSE,
geom = "auto", xlim = c(NA, NA), ylim = c(NA, NA), log = "",
main = NULL, xlab = deparse(substitute(x)),
ylab = deparse(substitute(y)), asp = NA, stat = NULL, position = NULL)

关于linux - 无法在 linux mint 15 32 位上安装 R 包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23586166/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com