全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 R语言论坛
4389 1
2017-06-13
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)
     }



报错:
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窗口有图显示,请问怎么修改~
二维码

扫码加我 拉你入群

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

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

全部回复
2017-6-13 19:40:00
有人吗?
二维码

扫码加我 拉你入群

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

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

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群