ui.R
showOutput("applicationsClusterRChart", lib = "polycharts")
server.R
output$applicationsClusterRChart <- renderChart({
appCData<-mpg[,c("displ","cty")]
clusters<-kmeans(appCData, 3)
p1<-rPlot(displ~cty, data=appCData)
return(p1)
})
DOES not output any Chart.
And when I look at the console on the browser, it throws an error:
polychart2.standalone.js:263 Uncaught DefinitionError: Bad specification.
Any help greatly appreciated.