Procedure Syntax


Requirements:

  • GOPTIONS statement with DEV=ACTIVEX ACTXIMG

  • ODS HTML statement (before and after)

  • HBAR, HBAR3D, VBAR, or VBAR3D statement

Global statements: FOOTNOTE, GOPTIONS, TITLE

Supports: RUN- group processing

PROC GAREABAR <DATA = input-data-set >

  • VBAR category-variable* width-variable </ SUMVAR= response-variable option(s) >;

    • VBAR3D category-variable* width-variable </ SUMVAR= response-variable option(s) >;

  • HBAR category-variable* width-variable </ SUMVAR= response-variable option(s) >;

    • HBAR3D category-variable* width-variable </ SUMVAR= response-variable option(s) >;

PROC GAREABAR Statement

Identifies the data set containing the category variable, the response variable (SUMVAR), and the width variable.

Requirements: An input data set is required. If none is specified, the procedure uses the most recently created data set.

Syntax

PROC GAREABAR <DATA = input-data-set; >

Requirements

input-data-set

  • contains the data to be graphed.

GOPTIONS DEV=ACTIVEXACTXIMG

  • PROC GAREABAR requires a GOPTIONS statement where the value of DEV= is ACTIVEX or ACTXIMG (before the PROC).

ODS HTML

  • PROC GAREABAR requires an ODS HTML statement (both before and after the PROC).

HBAR, HBAR3D, VBAR, VBAR3D Statements

These statements create area bar charts where each bar shows two dimensions (a width variable and response variable) for each category variable.

Syntax

HBAR HBAR3D VBAR VBAR3D category-variable*width-variable

  • </ SUMVAR =response-variable option(s) >;

Required Arguments

All arguments must be in the input data set.

category-variable

  • is either character or numeric. Defines the category of data to chart. Each category variable results in a separate bar. If the category-variable is numeric, all its values are treated as DISCRETE (such as the years 2000, 2001, 2002). No midpoint is calculated for a numeric category variable.

response-variable

  • is always numeric. For HBAR and HBAR3D, the length of the each bar along the horizontal axis represents the response variable. For VBAR and VBAR3D, the height of the each bar along the vertical axis measures the response variable.

    Use the RSTAT option to specify whether the response variable is measured as a percentage or as a sum. The default is SUM.

width-variable

  • is always numeric. For HBAR and HBAR3D, the width variable is measured by the magnitude of each bar along the vertical axis. For VBAR and VBAR3D, the width variable is measured by the magnitude of each bar along the horizontal axis.

    Use the WSTAT option to specify whether the width variable is measured as a percentage or as a sum. The default is SUM.

Options

CFR= CFRAME= background- color

  • specifies a background color for the chart. The specified color must be a valid SAS/ GRAPH color name , or a character variable of length eight whose value is the color. The default color is white.

CTEXT= text-color

  • specifies a color for all text on the chart. The specified color must be a valid SAS/ GRAPH color name, or a character variable of length eight whose value is the color. The default color is black.

DISCRETE

  • causes the chart to show discrete width role values on the width axis rather than a continuous axis. If you do not specify DISCRETE, the continuous axis result is assumed. .

FRAME NOFRAME

  • FRAME (the default) draws a frame around the procedure output area. The frame color is the first color in the colors list.

    NOFRAME suppresses the frame that is drawn around the chart by default.

NAME=

  • when DEV=ACTXIMG, specifies the name of the graph (PNG file) produced by GAREABAR. The maximum length for entry-name is eight characters . If the specified name duplicates the name of an existing entry, then SAS/GRAPH software overwrites the existing entry.

    Use the PATH or GPATH option of the ODS HTML statement or ODS MARKUP statement to specify the location for storing the .png file.

SUBGROUP =

  • used to subdivide the response-variable dimension (SUMVAR). A SUBGROUP variable can be either character or numeric. For example, if the category variable is company, and the response variable is revenue, then specifying a SUBGROUP of country will subdivide the revenue for each company according to country. A numeric example is subdividing revenue by quarters : 1, 2, 3, 4.

WSTAT= WIDTHSTAT= SUM or PCT PERCENT

  • specifies whether the width variable is represented as a percentage or as a sum. The default is SUM.

RSTAT= RESPSTAT= SUM or PCT PERCENT

  • If SUBGROUP is specified, then RSTAT specifies whether the subgrouping is represented as a percentage or as a sum. The default is SUM.

    If SUBGROUP is not specified, then the response variable can only be SUM.




SAS.GRAPH 9.1 Reference, Volumes I and II
SAS.GRAPH 9.1 Reference, Volumes I and II
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 342

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net