Name

GRAPH_CORREL — Function to generate graphs showing correlations in a set of variables

Calling Sequence

[figNum]=GRAPH_CORREL(DATA,[LEG,PAIRS,MINMAX,FSIZE,PSIZE])

Parameters

DATA

Data to be plotted, matrix [NxP] with N = nb of value and P = Nb of variables

LEG

Legends for each variable (matrix [1xP], default = [V1 V2 ,...])

PAIRS

List of pairs of variable to plot (matrix [2xM]). X variables are listed on the first row, Y variables on the second row.

MINMAX

Min and max to plot each variables, matrix [Px2]: [[min VAR] [max VAR]]

FSIZE

Size of figure window, matrix [1x2]

PSIZE

Size of the points (in pt)

figNum

Number of figure number.

Description

  • The function plots the all pairs of variable on small graphs and save the overhall figure under a gif file format.

Examples

   // Data
   Data = rand(200,5);

   // Graphs of all pairs of variables
   f1 = GRAPH_CORREL(Data);   
   
   // Graphs of the last variable plotted against the others   
   xset('window',1);
   f2 = GRAPH_CORREL(Data,'def',[1:4;5*ones(1,4)]);   

  

See Also

plot2d , subplot , xs2gif

Authors

Julien Lerat

CEMAGREF Antony, HBAN Unit, julien.lerat@cemagref.fr