I have run the kmeans agorithm on Rhadoop with mapreduce model, but I can not open the .pdf file generated by plot().It give us the error which is "the file has been damaged or the file can not be restored".
On the other hand,I run the function kmeans() directly in R,
kmeans<-kmeans(iris[,-5],3,iter.max=100)
plot(iris[,-5], kmeans$cluster)
It produced a pdf file but it's damaged and cannot be opened, what's the problem? Thanks!