반짝이는 rCharts를 실행하면 내 로컬 콘솔에 플롯의 상단이 표시됩니다. 나는 이것이 왜 있는지 전혀 모르겠다. 나는 rCharts와 Shiny의 최신 개발 버전을 돌리고있다. 어떤 도움이라도 대단히 감사하겠습니다!rcharts nplot 반짝 반짝 빛날 때 보여지는 플롯의 상단에만 표시
아래의 두 파일은 문제를 완전히 재현해야합니다. Github에서의 CSV를로드 할 경우 사전에 감사합니다, 세바스찬
## 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")
)
))
여기에, (당신이 RCurl를로드하지 말아야 경우 어떤) 실패 Github에서의 데이터에 대한 직접 링크입니다 : 여기 https://github.com/sebastianbarfort/vaa/blob/master/vaa_.csv
예제를 다른 컴퓨터에서 실행하십시오. 나는 그것을 시정했다. 첫 번째 줄 df__는 남은 것이므로 오류가 발생합니다. 다음 df__에는 인증서가없는 컴퓨터의 보안 문제가 있습니다. 어떤 컬링 (curl-stuff)에서는 작동하지만 평범한 R에서는 작동하지 않을 수 있습니다. –
RCurl이로드되는 동안 코드가 작동해야합니다. 그렇지 않은 경우 Github의 csv에 대한 직접 링크를 포함 시켰습니다. –