[英]Can't installing R packages on linux mint 15 32bits
我正在嘗試安裝de ggplot庫,所以我使用此命令
install.packages('ggplot2', dependencies = TRUE)
當我編寫library(ggplot2)時,什么也沒有發生,所以沒有錯誤消息,所以我認為安裝過程可以正常工作,但是當我嘗試使用gplot函數時,我得到了:
Error: could not find function "gplot"
我嘗試以超級用戶身份打開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)
也許您可以嘗試使用“ ggplot()”而不是“ gplot()”
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.