how to plot correlation matrix shown by colored circles?
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Roja Eliza
el 30 de Mayo de 2022
Respondida: Chunru
el 30 de Mayo de 2022
How Can I plot this kind of correlation matrix? this figure was created using R
0 comentarios
Respuesta aceptada
Chunru
el 30 de Mayo de 2022
% Generate R
n= 6;
r = magic(n);
r = triu(r);
r(r==0) = NaN
% Plotting
[xx, yy] = meshgrid(1:n, 1:n);
scatter(xx, yy, r*20, 'filled');
set(gca, 'YDir', 'reverse');
colorbar
axis off
% use text to annotate
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Annotations en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!