clusters<-reactive(function(){
x1<-data()
df <- Y()
df<-df[,c(input$xcolumn_c,input$ycolumn_c)]
kmeans(df,input$clust)
})
output$downloadPlot <- downloadHandler(
filename="abc",
content = function(file) {
pdf(file)
print(clusters())
dev.off()
}
hey...above is my code to download the cluster graph...but it shows the error :attempt to use zero-length variable name
please help me out...please.....
str(input$xcolumn_c)
str(input$ycolumn_c)
--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/d9d61734-edf8-4d6a-b2c0-d408b97cc547%40googlegroups.com.