[英]Combine R shiny and googlevis motion chart
I'd like to deploy a web site using R shiny with a googleVis
motion chart, but when running the app, the motion chart showed up in another window in IE browser. 我想使用R googleVis
和googleVis
动态图来部署网站,但是运行该应用程序时,动态图显示在IE浏览器的另一个窗口中。
I'm wondering how the motion chart can show up together along with the R shiny. 我想知道动态图表如何与R Shiny一起显示。 Thanks in advance. 提前致谢。
server.R server.R
shinyServer(function(input, output) {
project_sub<-subset(project_all, select=c("name", "generation",
"man_cost", "quantity"))
motionchart2<-gvisMotionChart(project_sub, "name", "year2")
output$view_gviz <- renderGvis
({
plot(motionchart2)
})
})
ui.R ui.R
shinyUI(fluidPage(
titlePanel("Analysis of Project NRE"),
mainPanel(
h1("Motion Chart"),
h4("A Motion Chart is an alternative to providing a quick visual
overview ofprojects."),
plotOutput("view_gviz")
)
))
I ran into this problem. 我遇到了这个问题。 Try this in your ui.R
在您的ui.R
尝试
# googleVis needs htmlOutput not usual PlotOutput
htmlOutput("view_gviz")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.