Code covered by the BSD License  

Highlights from
Schemaball

5.0

5.0 | 5 ratings Rate this file 18 Downloads (last 30 days) File Size: 429 KB File ID: #42279
image thumbnail

Schemaball

by

 

18 Jun 2013 (Updated )

Plot correlation matrix as a schemaball

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

| Watch this File

File Information
Description

Plots correlation matrix as a schemaball.

EXAMPLES:

- Base demo
schemaball

- Supply your own correlation matrix (only lower off-diagonal triangular part is considered)
x = rand(10).^3;
x(:,3) = 1.3*mean(x,2);
schemaball(x)

- Supply custom labels as ['aa'; 'bb'; 'cc'; ...] or {'Hi','how','are',...}
schemaball(x, repmat(('a':'j')',1,2))
schemaball(x, {'Hi','how','is','your','day?', 'Do','you','like','schemaballs?','NO!!'})

- Customize curve colors
schemaball([],[],[1,0,1;1 1 0])

- Customize node color
schemaball([],[],[],[0,1,0])

- Customize manually other aspects
h = schemaball;
set(h.l(~isnan(h.l)), 'LineWidth',1.2)
set(h.s, 'MarkerEdgeColor','red','LineWidth',2,'SizeData',100)
set(h.t, 'EdgeColor','white','LineWidth',1)

For details see help

TODO:
- generalize to allow as input any connectivity matrix providing examples, updated documentation (and added functionality?)

p13v1.01

Required Products MATLAB
MATLAB release MATLAB 8.1 (R2013a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (6)
04 Jul 2014 Oleg Komarov

@Pascal
You can normalize your matrix. I left this aspect to the user, since she can choose how to re-map the matrix to an arbitrary interval.

04 Jul 2014 Pascal Schulthess

Absolutely fantastic.
But, I'd love a way to also input arbitrary matrices with arbitrary value ranges. Is there a way to do that?

01 Jul 2014 amanita  
10 Jan 2014 Wilma  
09 Dec 2013 jun

fantastic!!!

03 Sep 2013 karlo gonzales  
Updates
24 Jun 2013

Added link to fex page in the help.

Contact us