### Highlights from Schemaball

Join the 15-year community celebration.

Play games and win prizes!

5.0
5.0 | 10 ratings Rate this file 20 Downloads (last 30 days) File Size: 429 KB File ID: #42279 Version: 1.1

# Schemaball

### Oleg Komarov (view profile)

18 Jun 2013 (Updated )

Plot correlation matrix as a schemaball

### Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

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)
05 Oct 2016 Oleg Komarov

### Oleg Komarov (view profile)

@Julia: you can set(gca,'Color','white') but be aware that the way the colormap is set, average values will be dark/black, so you will have a central mass of dark lines. To see what I mean, check the default colormap here http://stackoverflow.com/a/17111675/2180721
To achieve white background you will need to change the colormap such that the two extremes blend in the middle into white.

Comment only
04 Oct 2016 Julia Ballester

### Julia Ballester (view profile)

Really useful and easy to manage! I have a question... Is it possible to change the background of the graph to white? I tried it and I can just change the background of the figure. Any advice will help, thanks!

Comment only
04 Oct 2016 Julia Ballester

### Julia Ballester (view profile)

21 Jul 2015 Oleg Komarov

### Oleg Komarov (view profile)

@cmo I cannot reproduce the issue. Can you provide an example?

@Anca Mitrea You need to save it with optional arguments for higher resolution. Please, see the matlab docs for print() and/or saveas(). You can also try export_fig http://www.mathworks.com/matlabcentral/fileexchange/23629-export-fig

Comment only
28 Jun 2015 Anca Mitrea

### Anca Mitrea (view profile)

Awesome tool, love it! I have a question... I would like to print the result on an A0 or A1 paper size and if I simply save it as it is, when I zoom it, it gets pixeled. What should I do? Thank you very much!

19 Jun 2015 cmo

### cmo (view profile)

works great!
when I use "saveas", the resulting PNG has a white background.
How do I print it to file with the black background?

02 Jan 2015 Nebitno

### Nebitno (view profile)

Thanks Oleg!

Comment only
02 Jan 2015 Oleg Komarov

### Oleg Komarov (view profile)

Hi Nebitno, check out: http://blogs.mathworks.com/community/2010/12/13/citing-file-exchange-submissions/

Comment only
30 Dec 2014 Nebitno

### Nebitno (view profile)

Silly question: how do I reference a figure that I generated using your code?

26 Dec 2014 Nebitno

### Nebitno (view profile)

04 Jul 2014 Oleg Komarov

### Oleg Komarov (view profile)

@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.

Comment only
04 Jul 2014 Pascal Schulthess

### Pascal Schulthess (view profile)

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

### amanita (view profile)

10 Jan 2014 Wilma

09 Dec 2013 jun

### jun (view profile)

fantastic!!!

03 Sep 2013 karlo gonzales