Friday, 27 September 2013

Configuring biplot in Matlab to distinguish in scatter

Configuring biplot in Matlab to distinguish in scatter

My original data is a 195x22 record set containing vocal measurements of
people having Parkinson's disease or not. In a vector, 195x1, I have a
status which is either 1/0.
Now, I have performed a PCA and I do a biplot, which turns out well. The
problem is that I can't tell which dots from my scatter plot origin of a
sick or a healthy person (I can't link it with status). I would like for
my scatter plot to have a red dot if healthy (status=0) and green if sick
(status=1).
How would I do that? My biplot code is:
biplot(coeff(:,1:2), ...
'Scores', score(:,1:2), ...
'VarLabels', Labels, ...
'markersize', 15 ...
);
xlabel('Bi-Plot: Standardized Data');
xlabel('PCA1');
ylabel('PCA2');

No comments:

Post a Comment