Object Reference : Graph Creation Commands
  
 
scatmat
Display a matrix of scatterplots.
The scatmat view forms pairs using all possible pairwise combinations for the series or columns and constructs a plot for each pair, using specialized positioning and axis labeling.
Scatterplots are simply XY-line plots with symbols turned on and lines turned off (see Graph::setelem). The scatmat graph type is equivalent to using scat with the “mult=mat” or “mult=lower” option indicating that the data should be graphed using the full or lower-triangular matrix of pairs.
Syntax
scatmat(options) o1 o2 [o3 ... ]
object_name.scatmat(options) [auxiliary_spec(arg)]
where o1, o2, ..., are series or group objects.
Following the scatmat keyword, you may specify general graph characteristics using options. Available options include template application and adding axis extensions.
The optional auxilary_spec allows you to add fit lines to the scatterplot (regression lines, kernel fit, nearest neighbor fit, orthogonal regression, and confidence ellipses; see “Auxiliary Spec”).
Options
Scale options
 
a (default)
Automatic single scale.
d
Dual scaling with no crossing.
x
Dual scaling with possible crossing.
n
Normalized scale (zero mean and unit standard deviation).
ab=type
Add axis border along data scales, where type may be “hist” or “h” (histogram), “boxplot” or “b”, “kernel” or “k”.
(Note: axis borders are not available for panel graphs with “panel=” options that involve summaries: mean, median, etc.)
Multiple graph options
 
l
Plot lower triangular scatterplot matrix.
Template and printing options
 
o=template
Use appearance options from the specified template. template may be a predefined template keyword (“default” - current global defaults, “classic”, “modern”, “reverse”, “midnight”, “spartan”, “monochrome”) or a graph in the workfile.
t=graph_name
Use appearance options and copy text and shading from the specified graph.
b / -b
[Apply / Remove] bold modifiers of the base template style specified using the “o=” option above.
w / -w
[Apply / Remove] wide modifiers of the base template style specified using the “o=” option above.
reset
Resets all graph options to the global defaults. May be used to remove existing customization of the graph.
p
Print the graph.
The options which support the “–” may be preceded by a “+” or “–” indicating whether to turn on or off the option. The “+” is optional.
Note that use of the template option will override the symbol setting.
Panel options
The following option applies when graphing panel structured data.
 
panel=arg (default taken from global settings)
Panel data display: “stack” (stack the cross-sections), “individual” or “i” (separate graph for each cross-section), “combine” or “c” (combine cross-section graphs in a single frame), “mean” (plot means across cross-sections), “median” (plot median across cross-sections).
(Note: more general versions of these panel graphs may be constructed as categorical graphs.)
Examples
Basic examples
scatmat weight height age
displays a matrix of scatter plots for all pairs of the three series
group g1 weight height age
g1.scatmat
displays the same graph using the named group G1.
g1.scatmat(l)
shows the portion of the matrix below the diagonal.
g1.scatmat(l, ab=hist, o=midnight)
displays the lower triangular matrix with histograms along the borders using the graph settings in the pre-defined template “midnight.”
Panel examples
g1.scatmat(panel=combined)
displays a scatterplot matrix using the series in G1 with observations for different cross-sections identified using different symbols and colors.
g1.scatmat(panel=stacked)
displays the same matrix, but with a common color and symbol.
g1.scatmat(panel=individual, l) linefit
displays a lower-triangular scatterplot matrix with regression fit for each cross-section, each in an individual frame.
Cross-references
See “Graphing Data” for a detailed discussion of graphs in EViews, and “Templates” for a discussion of graph templates. See Graph::graph for graph declaration and other graph types.
For a description of the available fit lines, see “Auxiliary Graph Types”.
See xyline for XY graphs.