- •Table of Contents
- •EViews 5.1 Update Overview
- •Overview of EViews 5.1 New Features
- •Chapter 1. EViews 5.1 Enhanced Graph Customization
- •Basic Graph Characteristics
- •Adding and Editing Text
- •Updated Graph Command Summary
- •Chapter 2. EViews 5.1 Workfile Page Creation Tools
- •Creating a New Page Using Identifiers
- •Updated Workfile Page Command Summary
- •Chapter 3. EViews 5.1 Panel and Pool Testing
- •Omitted Variables Test
- •Redundant Variables Test
- •Fixed Effects Testing
- •Hausman Test for Correlated Random Effects
- •Updated Panel and Pool Command Summary
- •Chapter 4. EViews 5.1 EcoWin Database Support
- •Interactive Graphical Interface
- •Tips for Working with EcoWin Databases
- •Updated EcoWin Command Summary
- •Chapter 5. EViews 5.1 Miscellaneous Features
- •Enhanced Copy Command
- •Equation Forecast Coefficient Uncertainty
- •Additional GARCH Output
- •Global Default for Maximum Number of Errors
- •Chapter 6. EViews 5.1 Command Reference Update Summary
- •addtext
- •area
- •axis
- •copy
- •dbopen
- •draw
- •drawdefault
- •errbar
- •fixedtest
- •forecast
- •garch
- •hilo
- •legend
- •line
- •linkto
- •makegarch
- •makemap
- •pagecreate
- •options
- •ranhaus
- •scat
- •setelem
- •spike
- •template
- •testadd
- •testdrop
- •textdefault
- •xyline
- •xypair
- •Index
- •area 45
- •Axis
- •Bar graph 49
- •Conditional variance
- •Coordinates
- •Copy
- •Create
- •workfile page 84
- •Database
- •Drag(ging)
- •Error bar graph 63
- •EViews Enterprise Edition 31
- •Fixed effects
- •Font options
- •Forecast
- •Frequency conversion 51
- •GARCH
- •Graph
- •border 5
- •color settings 5
- •modifying 5
- •place text in 8, 42, 107
- •scatterplot graph 94
- •Legend
- •line 76
- •makegarch 83
- •Open
- •Page
- •Pie graph 91
- •Random effects
- •Test
- •Workfile
- •create page in 84
- •xypair 114
EViews 5.1 Command Reference Update Summary—117
options |
Graph Proc |
|
|
Set options for a graph object.
Allows you to change the option settings of an existing graph object. When options is used with a multiple graph, the options are applied to all graphs.
Syntax
Graph Proc: |
graph_name.options option_list |
Note: the syntax of the options proc has changed considerably from version 3.1 of EViews. While not documented here, the EViews 3 options are still (for the most part) supported. However, we do not recommend using the old options, as future support is not guaranteed.
Options
Basic Graph Options
size(w, h) |
Specifies the size of the plotting frame in virtual inches |
|
(w=width, h=height). |
|
|
lineauto |
Use solid lines when drawing in color and use patterns |
|
and grayscale when drawing in black and white. |
|
|
linesolid |
Always use solid lines. |
|
|
linepat |
Always use line patterns. |
|
|
color / -color |
Specifies that lines/filled areas [use / do not use] color. |
|
Note that if the “lineauto” option option is specified, |
|
this choice will also influence the type of line or filled |
|
area drawn on screen: if color is specified, solid colored |
|
lines and filled areas will be drawn; if color is turned |
|
off, lines will be drawn using black and white line pat- |
|
terns, and gray scales will be used for filled areas. |
|
|
barlabelabove / |
[Place / Do not place] text value of data above bar in |
-barlabelabove |
bar graph. |
|
|
barlabelinside / |
[Place / Do not place] text value of data inside bar in |
-barlabelinside |
bar graph. |
|
|
outlinebars / |
[Outline / Do not outline] bars in a bar graph. |
-outlinebars |
|
118—Chapter 6. EViews 5.1 Command Reference Update Summary
outlinearea / -outlinearea
barspace / -barspace
pielabel / -pielabel
Graph Grid Options
gridl / -gridl gridr / -gridr gridv / -gridv gridcolor(arg)
gridwidth(n)
gridpat(index)
[Outline / Do not outline] areas in an area graph.
[Put / Do not put] space between bars in bar graph.
[Place / Do not place] text value of data in pie chart.
[Turn on / Turn off] grid lines on the left scale.
[Turn on / Turn off] grid lines on the right scale.
[Turn on / Turn off] grid lines on the vertical scale.
Sets the grid line color. arg may be one of the predefined color keywords, or it may be made up of n1, n2, n3, a set of three integers from 0 to 255, representing the RGB values of the color. For a description of the available color keywords (“blue”, “red”, “green”, “black”, “white”, “purple”, “orange”, “yellow”, “gray”, “ltgray”), see setfillcolor.
Sets the width of the grid lines in points. n should be a number between 0.25 and 5.
Sets the line pattern for grid lines to the type specified by index. index can be an integer from 1 to 12 or one of the matching keywords (“solid”, “dash1” through “dash10”, “none”). See setelem (p. 126) for a description of the available patterns. The “none” keyword turns on solid lines.
Background and Frame Options
fillcolor(arg) |
Sets the fill color of the graph frame. arg may be one of |
|
the predefined color keywords, or it may be made up of |
|
n1, n2, n3, a set of three integers from 0 to 255, repre- |
|
senting the RGB values of the color. For a description of |
|
the available color keywords (“blue”, “red”, “green”, |
|
“black”, “white”, “purple”, “orange”, “yellow”, “gray”, |
|
“ltgray”), see setfillcolor. |
|
|
|
|
EViews 5.1 Command Reference Update Summary—119 |
|
|
|
|
|
|
backcolor(arg) |
Sets the background color of the graph. arg may be one |
|
|
|
of the predefined color keywords, or it may be made up |
|
|
|
of n1, n2, n3, a set of three integers from 0 to 255, rep- |
|
|
|
resenting the RGB values of the color. For a description |
|
|
|
of the available color keywords (“blue”, “red”, “green”, |
|
|
|
“black”, “white”, “purple”, “orange”, “yellow”, “gray”, |
|
|
|
“ltgray”), see setfillcolor. |
|
|
|
|
|
|
framecolor(arg) |
Sets the background color of the graph frame. arg may |
|
|
|
be one of the predefined color keywords, or it may be |
|
|
|
made up of n1, n2, n3, a set of three integers from 0 to |
|
|
|
255, representing the RGB values of the color. For a |
|
|
|
description of the available color keywords (“blue”, |
|
|
|
“red”, “green”, “black”, “white”, “purple”, “orange”, |
|
|
|
“yellow”, “gray”, “ltgray”), see setfillcolor. |
|
|
|
|
|
|
framewidth(n) |
Sets the width of the graph frame in points. n should be |
|
|
|
a number between 0.25 and 5. |
|
|
|
|
|
|
frameaxes(arg) |
Specifies which frame axes to display. arg may be one |
|
|
|
of the keywords: “all”, “none”, or “labeled” (all axes |
|
|
|
that have labels), or any combination of letters “l” |
|
|
|
(left), “r” (right), “t” (top), and “b” (bottom), e.g. “lrt” |
|
|
|
for left, right and top. |
|
|
|
|
|
|
indenth(n) |
Sets the horizontal indentation of the graph from the |
|
|
|
graph frame in virtual inches. n should be a number |
|
|
|
between 0 and 0.75. |
|
|
|
|
|
|
indentv(n) |
Sets the vertical indentation of the graph from the graph |
|
|
|
frame in virtual inches. n should be a number between |
|
|
|
0 and 0.75. |
|
|
|
|
|
|
background / |
[Include / Do not include] the background color when |
|
|
-background |
exporting or printing the graph. |
|
The options which support the “-” may be proceeded by a “+” or “-” indicating whether to turn on or off the option. The “+” is optional.
Data labels in bar and pie graphs will only be visible when there is sufficient space in the graph.
Examples
graph1.option size(4,4) +inbox color
sets GRAPH1 to use a 4 × 4 frame enclosed in a box. The graph will use color.
120—Chapter 6. EViews 5.1 Command Reference Update Summary
graph1.option linepat -color size(2,8) -inbox
sets GRAPH1 to use a 2 × 8 frame with no box. The graph does not use color, with the lines instead being displayed using patterns.
graph1.option fillcolor(gray) backcolor(192, 192, 192) framecolor(blue)
sets the fill color of the graph frame to gray, the background color of the graph to the RGB values 192, 192, and 192, and the graph frame color to blue.
graph1.option gridpat(3) gridl -gridv
isplay left scale grid lines using line pattern 3 (“dash2”) and turn off display of vertical grid lines.
graph1.option indenth(.5) frameaxes(lb) framewidth(.5) gridwidth(.25)
indents the graph .5 virtual inches from the frame, displays left and bottom frame axes of width .5 points, and sets the gridline width to .25 points.
Cross-references
See Chapter 1, “EViews 5.1 Enhanced Graph Customization”, on page 33 for a discussion of graph options in EViews.
See also axis (p. 75), datelabel, scale, setelem (p. 126), and setfillcolor.
pie
Command || Graph Command | Group View | Matrix View | Rowvector View | Sym View
Display pie graph view of data in object, or change existing graph object type to pie chart.
Display pie charts for any number of series or data in a matrix object. There will be one pie for each date or observation number, or each row of a matrix, provided the values are positive. Each series or column is shown as a wedge in a different color/pattern, where the width of the wedge equals the percentage contribution of the series/column to the total of all listed series.
Syntax
Command: |
pie(options) arg1 [arg2 arg3 ...] |
Object View: |
object_name.pie(options) |
Graph Proc: |
graph_name.pie(options) |
EViews 5.1 Command Reference Update Summary—121
To use pie as a command, simply list the name of one or more series or groups, or a matrix object to include in the pie chart. You may also change the exiting graph type by using pie as a proc. Simply list the graph name, followed by a period, and the pie keyword.
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. |
|
|
p |
Print the pie graph. |
|
|
The options which support the “-” may be proceeded by a “+” or “-” indicating whether to turn on or off the option. The “+” is optional.
Panel options
The following options apply when graphing panel structured data.
panel=arg |
Panel data display: “stack” (stack the cross-sections), |
(default taken |
“individual” or “1” (separate graph for each cross-sec- |
from global settion), “combine” or “c” (combine each cross-section in
tings) |
single graph; one time axis), “mean” (plot means |
|
across cross-sections), “mean1se” (plot mean and +/- |
|
1 standard deviation summaries), “mean2sd” (plot |
|
mean and +/- 2 s.d. summaries), “mean3sd” (plot |
|
mean and +/- 3 s.d. summaries), “median” (plot |
|
median across cross-sections), “med25” (plot median |
|
and +/- .25 quantiles), “med10” (plot median and +/- |
|
.10 quantiles), “med05” (plot median +/- .05 quan- |
|
tiles), “med025” (plot median +/- .025 quantiles), |
|
“med005” (plot median +/- .005 quantiles), “med- |
|
mxmn” (plot median, max and min). |
