小编Seb*_*ort的帖子

rcharts nplot只显示运行时闪亮的情节

当我使用Shiny运行rCharts时,仅在我的本地控制台中显示该图的顶部.我完全不知道为什么会这样,我正在运行rCharts和Shiny的最新开发版本.任何帮助将不胜感激!

下面的两个文件应该完全重现问题.在此先感谢塞巴斯蒂安

## server.R
require(rCharts)
library(RCurl)
options(RCHART_WIDTH = 800)
shinyServer(function(input, output) {
output$myChart <- renderChart({
x <- getURL("https://raw.github.com/sebastianbarfort/vaa/master/vaa_.csv")
df___ <- read.csv(text = x)
p2 <- nPlot(Economy ~ Immigration, group = 'X.1', data = df___, 
               type = 'scatterChart')
p2$chart(color = c('red', 'blue', 'green',"yellow","yellow","yellow","yellow","yellow"))
p2$set(dom = "myChart")
return(p2)
})
})


##ui.R
require(rCharts) 
shinyUI(pageWithSidebar(
headerPanel("xxx"),
sidebarPanel(
selectInput(inputId = "x",
            label = "Choose X",
            choices = c("CL", "Economy", "Education", "Envrionment",    "EU",
                        "FP",   "Health",   "Immigration"),
            selected = "Economy"),
selectInput(inputId = "y",
            label = "Choose Y", …
Run Code Online (Sandbox Code Playgroud)

r shiny rcharts

3
推荐指数
1
解决办法
1879
查看次数

标签 统计

r ×1

rcharts ×1

shiny ×1