楼主: yinzheran
1884 0

[问答] 报错,请问怎么修改。 Error in xy.coords(x, y, xlabel, ylabel, log) [推广有奖]

  • 0关注
  • 0粉丝

小学生

42%

还不是VIP/贵宾

-

威望
0
论坛币
0 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
56 点
帖子
5
精华
0
在线时间
2 小时
注册时间
2017-6-10
最后登录
2017-6-14

楼主
yinzheran 发表于 2017-6-13 16:38:29 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
weather_html<-function(data=data,output=FALSE,path=''){
        df<-data[,c('prov','temperature')]
        names(df)<-c("prov","temperature")
        title<-paste(format(date,"%Y-%m-%d"),"China temperature now",sep="")
        ofile<-paste(format(date,"%Y%m%d"),"_day.html",sep="")
        df[,1]<-substr(df[,1],0,2)
        recharts.eMap <- eMap(df, namevar=1, datavar = 2, title=title)
        if(output){                                                         # 输出HTML文件
                 recharts.eMap$outList[c('chartid','type')]<-NULL
                 writeLines(unlist(recharts.eMap$outList),paste(path,ofile,sep=''))
        }else{                                                              # 在浏览器中打开HTML网页
                 plot(recharts.eMap)
     }
源程序:http://blog.fens.me/r-app-china-weather/最下面


报错:
Error in xy.coords(x, y, xlabel, ylabel, log) :
  'x' is a list, but does not have components 'x' and 'y'


7.
stop("'x' is a list, but does not have components 'x' and 'y'")
6.
xy.coords(x, y, xlabel, ylabel, log)
5.
plot.default(recharts.eMap)
4.
plot(recharts.eMap)
3.
plot(recharts.eMap)
2.
weather_html(data, output = FALSE, path = "")


不能plot(recharts.eMap) ,但是查看recharts.eMap,右边的plot窗口有图显示,请问怎么修改~

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:xlabel label Error Abel 怎么修改 function Error China names title

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-31 05:50