Object Reference : Graph Creation Commands
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.
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”).
Scale options
a (default)
Automatic single scale.
Dual scaling with no crossing.
Dual scaling with possible crossing.
Normalized scale (zero mean and unit standard deviation).
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
Plot lower triangular scatterplot matrix.
Template and printing options
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.
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.
Resets all graph options to the global defaults. May be used to remove existing customization of the graph.
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.)
Basic examples
scatmat weight height age
displays a matrix of scatter plots for all pairs of the three series.
group g1 weight height age
displays the same graph using the named group G1.
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
displays a scatterplot matrix using the series in G1 with observations for different cross-sections identified using different symbols and colors.
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.
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.