Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Eviews5 / EViews5 / Docs / EViews 5 Command Ref.pdf
Скачиваний:
47
Добавлен:
23.03.2015
Размер:
5.23 Mб
Скачать

558—Appendix B. Command Reference

g1.xy(o=gra1)

plots INF on the horizontal axis and UNEMP, GDP and INV on the vertical axis, using the graph object GRA1 as a template.

g1.xy(b)

g1.xy(b,m)

plots INF against UNEMP and GDP against INV in first in a single graph, and then in multiple graphs.

If there is an existing graph GRAPH01, the expression:

graph01.xy(m, n)

changes its type to an XY plot displayed in multiple graphs with normalized scales, with the remaining XY graph settings at their default values, and using the existing GRAPH01 settings for line and symbol display.

Cross-references

See “XY Line” on page 373 of the User’s Guide for additional details.

See graph (p. 316) for graph declaration and additional graph types and options (p. 375) for graph options. scat (p. 435) and xyline (p. 558) are specialized forms of XY graphs.

xyline

Command || Graph Command | Group View | Matrix View | Sym View

 

 

Display XY line graph, or change existing graph object type to XY line (if possible).

By default, the first series or column of data will be located along the horizontal axis and the remaining data on the vertical axis. You may optionally choose to plot the data in pairs, where the first two series or columns are plotted against each other, the second two series or columns are plotted against each other, and so forth.

Syntax

Command:

xyline(options) arg1 [arg2 arg3 ...]

Object View:

group_name.xyline(options)

Graph Proc:

graph_name.xyline(options)

If used as a command, follow the keyword by a list of series and group objects, or by a matrix object. There must be at least two series or columns in the data to be graphed.

XY line graphs are simply XY plots (see xy (p. 556)) with lines turned on, and symbols turned off (see setelem (p. 449)).

xyline—559

Options

Options may be specified in parentheses after the keyword:

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.

 

 

p

Print the XY-line graph.

 

 

The options which support the “-” may be proceeded 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 lines setting.

Scale options

a (default)

Automatic single scale.

 

 

b

Plot series or columns in pairs (the first two against

 

each other, the second two against each other, and so

 

forth).

 

 

n

Normalized scale (zero mean and unit standard devia-

 

tion). May not be used with the “s” option.

 

 

d

Dual scaling with no crossing.

 

 

x

Dual scaling with possible crossing.

 

 

mDisplay XY plots in multiple graphs (will override the “s” option). Not for use with an existing graph object.

Panel options

The following options apply when graphing panel structured data.

560—Appendix B. Command Reference

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).

Examples

group g1 inf unemp gdp inv

g1.xyline(o=midnight)

plots, in a single graph, INF (on the vertical axis) against UNEMP and GDP against INV, using the predefined template “midnight”.

g1.xyline

g1.xyline(m)

plots INF against UNEMP and GDP against INV, first in a single graph, and then in multiple graphs.

If there is an existing graph GRAPH01, the expression:

graph01.xyline(d)

changes its type to an XY line plot with dual scales and no crossing, with the remaining XY graph settings at their default values.

Cross-references

See “XY Line” on page 373 of the User’s Guide for additional details.

See xy (p. 556) and graph (p. 316) for graph declaration and additional graph types and options (p. 375) for graph options. See scat (p. 435) for XY scatterplots.

xypair—561

xypair

Command || Graph Command | Group View | Matrix View | Rowvector View | Sym View

Display XY pairs graph, or change existing graph object type to XY pairs (if possible).

Plots the data in pairs, where the first two series or columns are plotted against each other, the second two series or columns are plotted against each other, and so forth.

Syntax

Command:

xypair(options) arg1 [arg2 arg3 ...]

Object View:

group_name.xypair(options)

Graph Proc:

graph_name.xypair(options)

If used as a command, follow the keyword by a list of series and group objects, or by a matrix object. There must be at least two series or columns in the data to be graphed.

If changing the type of a graph, the default behavior is to use the existing settings for lines and symbols in the graph.

This graph type is equivalent to using xy (p. 556) with the “b” option indicating that the data should be graphed in pairs.

Options

Options may be specified in parentheses after the keyword:

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.

 

 

p

Print the XY-pair graph.

 

 

562—Appendix B. Command Reference

The options which support the “-” may be proceeded 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 pairs setting.

Scale options

a (default)

Automatic single scale.

 

 

b

Plot series or columns in pairs (the first two against

 

each other, the second two against each other, and so

 

forth).

 

 

n

Normalized scale (zero mean and unit standard devia-

 

tion). May not be used with the “s” option.

 

 

d

Dual scaling with no crossing.

 

 

x

Dual scaling with possible crossing.

 

 

mDisplay XY plots in multiple graphs (will override the “s” option). Not for use with an existing graph object.

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).

Examples

group g1 inf unemp gdp inv

g1.xypair(o=gra1)

xypair—563

plots, in a single graph, INF (on the vertical axis) against UNEMP and GDP against INV, using the graph object GRA1 as a template.

g1.xypair

g1.xypair(m)

plots INF against UNEMP and GDP against INV, first in a single graph, and then in multiple graphs.

If there is an existing graph GRAPH01, the expression

graph01.xypair(m, n)

changes its type to an XY pair plot displayed in multiple graphs with normalized scales, with the remaining XY graph settings at their default values, and using the existing GRAPH01 settings for line and symbol display.

Cross-references

See “XY Line” on page 373 of the User’s Guide for additional details.

See graph (p. 316) for graph declaration and additional graph types and options (p. 375) for graph options. See xy (p. 556) for the creation of general XY graphs, and scat (p. 435) for scatterplots.

564—Appendix B. Command Reference

Соседние файлы в папке Docs