在运行地理地图时,在浏览器中绘制图形。我希望图形在myapp中绘制
i mention code in UI and server
UI code: tabPanel("Location",htmlOutput("stateservice"))
my servercode:
Statecodes <- Statecode
Statecodes1 <- na.omit(Statecodes)
state<-Statecodes1$STATE_NAME
ProvidedService<-Statecodes1$code_description
Statecodes2<-na.omit(data.frame(state,ProvidedService))
Statecodes2$loc=paste(Statecodes2$state, Statecodes2$codedescrp, sep=":")
G3 <- gvisGeoChart(Statecodes2, "Statecodes2$state", "Statecodes2$ProvidedService",
options=list(width=300, height=300))
T <- gvisTable(Statecodes2,options=list(width=220, height=300))
GT <- gvisMerge(G3 ,T, horizontal=TRUE)
plot(GT)
我的UI参考地址中带有标签的地理图