I have a 151-by-200 matrix, let's say D
, where rows are patients and cols are some features.
After using pdist
and mdscale
I obtain a 151-by-3 matrix. I also used some consensus clustering algorithm and obtained the partitioning of the patients.
Now I would like to plot the distribution of the mdscaled matrix of points, each one with a shape and a colour (where shapes indicates classes and colors clusters ) as in the image below.
Can you give me an hint on how to do it? Thank you.