Object Reference : Graph Creation Commands
  
 
mixed
Plots a graph with various graph types.
Syntax
group_name.mixed(options) type_list
The type_list argument controls the types of graphs included. Include a space delimited list of graph type keywords along with the series attached to that type. Available graph types are “line”, “bar”, “area”, “spike”, “band”, “stackedline”, “stackedbar”, “stackedarea”, and “stackedspike”.
Each keyword should be followed by parenthesis containing a comma separated list of series which will be graphed with that type. Series can be specified by name or by a number corresponding to their position in the group.
Options
 
llast/-llast
Draw all line types on top of all fill types (llast) or below all fill types (-llast).
ab=type
Add axis border along data scale, 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.)
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.
Graph data options
The following option is available in non-panel or categorical graph settings:
 
contract=key
Contract the data as specified by key, where key may be: “mean”, “median”, “max”, “min”, “sum”, “var” - variance, “sd” - standard deviation, “sumsq” - sum of the squared values, “skew” - skewness, “kurt” - kurtosis, “nas” - number of missing values, “obs” - number of observations, “unique” - error if the series is not identical for all observations in a given group, “first” - first observation in category using workfile order, “last” - last observation in category using workfile order, “quant(quantile)” - where quantile is a number between 0 and 1.
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
group g1 ser1 ser2 ser3 ser4
g1.mixed line(1,3) bar(2,4)
defines a group G1 containing the four series SER1, SER2, SER3, and SER4 then plots a mixed type graph of the series in the group, with SER1 and SER3 being shown in line graph form, and SER2 and SER4 in bar graph form.
g1.mixed(o=midnight,-lline) stackedarea(ser1, ser2) line(ser3) bar(4)
creates a mixed type graph of the group G1, using the settings of the predefined template “midnight,” applying the bold and wide modifiers. Series SER1 and SER2 are stacked into an area graph, whereas series SER3 is shown as a line and SER4 as a bar. The lines of SER3 are drawn behind the fill areas of SER1, SER2, and SER4.
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.