implement plot for clustering