我一直在通过导入hdfs文件readLines(textConnection(rhread("/hotel_81480.dat",type="text")),n=1)
并将第一行保存在一个数组中。数组中包含的数据是Imajs[]
类型的,使用命令绘制条形图。面对错误:number.Now
barplot(ajs[])
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Error in X11(d$display, d$width, d$height, d$pointsize, d$gamma, d$colortype, :
unable to start device X11cairo
In addition: Warning message:
In function (display = "", width, height, pointsize, gamma, bg, :
unable to open connection to X11 display ''
希望得到任何建议