试开URL’
http://brieger.esalq.usp.br/CRAN ... ggplot2_0.9.3.1.zip
Content type 'application/zip' length 2667652 bytes (2.5 Mb)
打开了URL
downloaded 2.5 Mb
程序包‘ggplot2’打开成功,MD5和检查也通过
下载的二进制程序包在
C:\Users\伟伟\AppData\Local\Temp\RtmpKs40hO\downloaded_packages里
> x <- rnorm(100,14,5)
> y <- x + rnorm(100,0,1)
> plot(x,y)
> text(13,20, expression(x[1] == x[2]))
>
>
> x <- rnorm(100,14,5)
> y <- x + rnorm(100,0,1)
> ggplot(data= NULL, aes(x = x, y = y)) + #开始绘图
+ geom_point(color = "darkred") + #添加点
+ annotate("text",x =13 , y = 20,parse = T,
+ label = "x[1] == x[2]") #添加注释
错误: 没有"ggplot"这个函数
>
无法安装这个包,一直都不行,太麻烦了,大神请留步。