2

我正在尝试用散点图制作一个闪亮的应用程序,但我收到了错误”

未捕获的定义错误:错误规范 polychart2.standalone.js:263

我读过使用 renderchart2 可以解决这个问题,但我仍然遇到同样的错误,我使用的是最新的开发版 rcharts,这是我的代码

用户界面

# A bunch of user input
mainPanel(showOutput("data","polycharts"))

服务器.R

# combined matrix is declared here
shinyServer(function(input, output)
{
    output$data <- renderChart2({
        # x and y are the column headers to be plotted
        plot <- rPlot(x=x,y=y, data=combined_matrix, 
            color = "Categories", facet = "Categories",
            type='point')
        plot$set(dom= 'data')
        return(plot)
})

谢谢你的帮助

4

0 回答 0