What I'm trying to do is to display a Silhouette Plot in my Shiny apps. But I always get a blank image, which only shows its content when I click Open in Browser . Below is my code:
output$sil_image <- renderPlot({
# distance1 already defined in global.R
sil1 <- silhouette(db1$cluster, dist=distance1)
plot(sil1)
})
I've seen someone asking a similar question as a comment of the answer in this question , but did not receive any reply.