Shiny で rCharts を実行すると、ローカル コンソールにプロットの上部のみが表示されます。これがなぜなのかまったくわかりません。rCharts と Shiny の両方の最新の開発バージョンを実行しています。どんな助けでも大歓迎です!
以下の 2 つのファイルは、問題を完全に再現するはずです。前もって感謝します、セバスチャン
## 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",
choices = c("CL", "Economy", "Education", "Envrionment", "EU",
"FP", "Health", "Immigration"),
selected = "Immigration")
),
mainPanel(
showOutput("myChart","Nvd3")
)
))
Github からの csv の読み込みが失敗した場合 (RCurl を読み込む場合はそうではありません)、Github のデータへの直接リンクは次のとおりです: https://github.com/sebastianbarfort/vaa/blob/master/vaa_.csv