In plot.kmeans ensure that class is a factor.