Creating function for plotting clusterings