0
我想嵌入到NPLOT閃亮的server.R像如何將rcharts(nplot)嵌入到帶有html文件的閃亮文件中?
shinyServer(function(input, output) {
output$testChart <- renderChart2({
n1<-nPlot(Freq ~ Var1, data=speedTable, type="discreteBarChart", color="blue")
n1$xAxis(axisLabel = "Heading")
n1$yAxis(axisLabel = "label", width = 40)
n1$set(title = "Title")
n1$addParams(dom = 'testChart')
return(n1)
})
})
和我的index.html像這樣:
<html>
<head>
<script src="shared/jquery.js" type="text/javascript"></script>
<script src="shared/shiny.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="shared/shiny.css"/>
</head>
<body>
<br />
<br />
<hr />
<div class="rChart nvd3" id="testChart"></div>
</body>
</html>
但在頁面dosenot說明了什麼? 您的幫助將非常感激
有你看到這個http://stackoverflow.com/questions/24102372/r-shiny-app-with-rcharts – MLavoie