Today I have realised that the silhouette
plot in the cluster
package doesn't display properly in RStudio
. A Google search revealed that someone else had had a problem with this:
http://support.rstudio.org/help/discussions/problems/3094-plotsnot-showing-up-in-r-studio
Being new to R, it was unclear to me whether the problem had been resolved in this thread! So my question is: is there a way to get the silhouette
plot to display properly in RStudio
?
Thanks for any help.
Example script:
library(cluster)
data(xclara)
km <- kmeans(xclara,3)
dissE <- daisy(xclara)
sk <- silhouette(km$cl, dissE)
plot(sk)