using different colours of points in a biplot

6 visualizaciones (últimos 30 días)
cgo
cgo el 23 de Ag. de 2018
Respondida: dpb el 23 de Ag. de 2018
Hi,
I have generated a biplot (used for PCA) and I wanted to use different colours for points according to my dataset. Right now, there is only one colour (red) for everything.
How do I this?
Thanks

Respuestas (1)

dpb
dpb el 23 de Ag. de 2018
From the doc,
h = biplot(coefs,'Name',Value) specifies one or more name/value input pairs and returns a column vector of
handles to the graphics objects created by biplot. The h contains, in order, handles corresponding to
variables (line handles, followed by marker handles, followed by text handles), to observations
(if present, marker handles followed by text handles), and to the axis lines.
So, save the handle and retrieve the various handles from within and set properties of them as desired.
Just a vector of handles isn't all that convenient a form in which to return the information although know the number of variables and components to be able to count...

Categorías

Más información sobre Dimensionality Reduction and Feature Extraction en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by