Code covered by the BSD License  

Highlights from
Taylor Diagram

4.375

4.4 | 10 ratings Rate this file 41 Downloads (last 30 days) File Size: 22.38 KB File ID: #20559
image thumbnail

Taylor Diagram

by Guillaume MAZE

 

02 Jul 2008 (Updated 10 Feb 2010)

Plot a Taylor Diagram

| Watch this File

File Information
Description

Plot a Taylor diagram from statistics values given by STDs (standard deviations), RMSs (centered root mean square difference) and CORs (correlation)

Ref: K. Taylor
Summarizing multiple aspects of model performance in a single diagram. JGR 2001

MATLAB release MATLAB 7.5 (R2007b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (25)
04 Jul 2008 Pierre Hubertin Andrianirina  
24 Sep 2008 C Schwalm

I had started to code this up myself, now I don't have to... These plots are wonderful for diagnostics and comparing numerous models. Well done.

09 Aug 2009 Georgina

Does anyone have an example of the inputs required for this script. I am having trouble with it.
I get "Something''s wrong with the datas"
I think it is because I don't understand what is supposed to be in the 1st row of of each of the arrays.

26 Aug 2009 Damian Brady

I agree with Georgina!

25 Sep 2009 Guillaume MAZE

You'll find bellow links to .mat file with datas you can use to test the routine, and with the scripts I used myself to plot these datas (they are daily time series of sea surface net heat flux at a mooring in the North Atlantic, and results from numerical models to compare with)

hope this will be helpful
cheers
guillaume

.mat file is here: http://guillaumemaze.googlecode.com/svn/trunk/matlab/routines/taylordiag_egdata.mat
the example is here: http://guillaumemaze.googlecode.com/svn/trunk/matlab/routines/taylordiag_test.m

ps: I use the subroutine allstats in this peace of code to make things easier, you can get it here:
http://code.google.com/p/guillaumemaze/source/browse/#svn/trunk/matlab/routines

26 Nov 2009 Ben

Thank you for the nice script and the examples.
I just have one question. What kind of function is the 'ptable' in the example: ax = ptable([2 3],[2 2;4 6]);
Thanks
Cheers Ben

26 Nov 2009 Jenny

Hi Ben!

You can get the ptable script here:
http://code.google.com/p/guillaumemaze/wiki/matlab_routines_ptable

However, I still can't get the script to work. not with my own data and not with the example.

With my own data I get something like this:
??? Error using ==> taylordiag at 85
taylordiag.m : Something's wrong with the datas

With the example the error message is:
??? Index exceeds matrix dimensions.

Error in ==> taylordiag_test at 77
[pp tt axl] =
taylordiag(squeeze(statm(:,2)),squeeze(statm(:,3)),squeeze(statm(:,4)),...

Does anyone know what is wrong?
I think I've misunderstood something about what input to give the script...

Cheers!

12 Dec 2009 Mariac Valverde Brambila

I agree with Jenny

19 Jan 2010 Roberto Venegas

Hi, Can anybody let me know where I can get the subroutine allstats, I tried to get this from here: http://code.google.com/p/guillaumemaze/source/browse/#svn/trunk/matlab/routines

but doesnt work.
Thanks.
Robert.

28 Jul 2010 Carlos

Hi, I noted that the script doesn't use the RMSd value for drawing the lines or placing the dots. What's wrong with it?

28 Jul 2010 Guillaume MAZE

The whole idea of a Taylor diagram is the triangulation of a point given statistical properties it represents in a trigonometric context. A point needs only 2 parameters to be placed in the 2D diagram but we have 3 parameters which can be used. RMSd is therefore not used to plot the point but statistics/trigonometry requirements are checked and require RMSd.

14 Sep 2010 Georgina  
17 Feb 2011 PRASHANT SRIVASTAVA

i am getting the same problem as jenny????
Any one know how to solve this?????

Prashant

18 Feb 2011 Guillaume MAZE

To Jenny and others having the same problem,
If you get the error message about: "Something's wrong with the datas", this is because the statistics are wrong and trigonometric relations are wrong as well, see my comment from Jul.28th.
If you also have an error message running the test script, I can't figure out why it would be. The 'statm' matrix should be 5x4. I tried this test on many different platforms, removing all my custom path, etc. and it always works fine. The only reason why you would have an error and I can think about is that somewhere in your path a function overwrites something done in the script which makes it to behave not as expected.
So, please be sure you have the correct test datas and routines. To run the test you'll also need these two functions:
http://code.google.com/p/guillaumemaze/wiki/matlab_routines_ptable
http://code.google.com/p/guillaumemaze/wiki/matlab_routines_allstats

15 Jul 2011 Q.

http://code.google.com/p/guillaumemaze/wiki/matlab_routines_ptable
http://code.google.com/p/guillaumemaze/wiki/matlab_routines_allstats

Page "matlab_routines_allstats" Not Found

So, you move to another places? why not put the test data here?

Thanks.

19 Sep 2011 Chiyuan

Sorry, MAZE, I meet the same problem with jenny, and I found the generated 'Statm' matrix is 5x1, not 5x4....The matlab version I used is 7.0

19 Sep 2011 Guillaume MAZE

New ptable and allstats location:
http://code.google.com/p/guillaumemaze/wiki/matlab_codes_graphicxPlots_ptable
and
http://code.google.com/p/guillaumemaze/wiki/matlab_codes_statistics_allstats

19 Sep 2011 Chiyuan

It succeed now, thanks MAZE!

07 Nov 2011 Benrique

aMAZEing. Thanks heaps.

16 Dec 2011 Shinobue111  
16 Dec 2011 Shinobue111

I cant get the example to even work.. I have the latest allstats..

>> statm(:,2)
??? Index exceeds matrix dimensions.

08 Feb 2012 Ming Chen

This is very handy! Thanks to Guillaume MAZE!

20 Feb 2012 Lang

I could plot using example data sets. But there is no information of rmsd on plot other than some green lines. Whether the rmsd intervals label on the plot?

06 Mar 2012 Ming Chen

Hi all, I can plot the diagram with only positive correlations. However, when I tried to plot both positive and negative correlations (Npan=2) with the same data, I got this error message:
??? Error using ==> set
Value must be numeric.

Error in ==> xlabel at 43
  set(h, 'FontAngle', get(ax, 'FontAngle'), ...

Error in ==> xlabel at 22
  h = xlabel(gca,varargin{:});

Error in ==> taylordiag at 399
ax(ix).handle =xlabel('Standard deviation','fontweight',axlabweight,...

Error in ==> All_3_years at 601
[hp ht axl] = taylordiag(STD_G21_08,RMS_G21_08,COR_G21_08,'Npan',2,'tickSTD',(0:0.25:1.5));

Is there anybody who has the same problem?

16 Mar 2012 Aisling

This is a brilliant function. However, I am struggling to get the correlation lines eminating from the origin to plot when the correlation is negative (the points plot perfectly). Is there a way of doing this? Thanks.

Please login to add a comment or rating.
Updates
10 Feb 2010

I made the help, well, more helpful regarding all the comments ! I also added a complete example in the zip file.

Tag Activity for this File
Tag Applied By Date/Time
specialized Guillaume MAZE 22 Oct 2008 10:08:18
plotting Guillaume MAZE 22 Oct 2008 10:08:18
statistic Guillaume MAZE 22 Oct 2008 10:08:18
taylor Guillaume MAZE 22 Oct 2008 10:08:18
graphics Guillaume MAZE 22 Oct 2008 10:08:18
diagram Guillaume MAZE 22 Oct 2008 10:08:18
probability Cristina McIntire 07 Nov 2008 11:36:29
taylor mahesh 20 Dec 2011 09:42:25
diagram Angshuman 29 Apr 2012 07:27:18

Contact us at files@mathworks.com