How can I create a scatterplot matrix?

2 visualizaciones (últimos 30 días)
Jehona
Jehona el 29 de Ag. de 2020
Respondida: the cyclist el 29 de Ag. de 2020
Good evening,
can anyone tell me how to do a scatterplot matrix out of these 4 variables and insert also the groups in different colors??

Respuestas (1)

the cyclist
the cyclist el 29 de Ag. de 2020
Here is one way:
T = readtable('Stress_Reactivity.xlsx');
figure
gscatter(T.cort_3,T.diastolic_3,T.condition)
I recommend reading the documentation for gscatter for details.
I didn't know exactly what you meant by "scatterplot matrix out of these 4 variables", so I just did two variables. I assumed the binary variable condition was how you wanted to group them.

Categorías

Más información sobre Discrete Data Plots 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