modified plotting code for K3 K4 clusters