Previous Page | Next Page

The SGPANEL Procedure

REFLINE Statement


Creates a horizontal or vertical reference line.


Syntax

REFLINE variable | value-1 <... value-n> </ option(s)>;

option(s) can be one or more options from the following categories:


Required Arguments

variable

draws a reference line for each value of the specified variable.

Restriction: This argument is available with SAS 9.2 Phase 2 and later.
value-1 <... value-n>

draws one or more reference lines at the values that you specify.


Options

AXIS= X | Y

specifies the axis that contains the reference line values. For example, if you specify AXIS= X, vertical reference lines are drawn at points on the X axis.

Default: Y
LABEL <= ("text-string-1" ... "text-string-n")>

creates labels for each reference line. If you do not specify a label for a line, the reference value for that line is used as the label.

LABELPOS= MIN | MAX

specifies the position of the labels. MIN specifies the label is placed at the minimum value of the data axis. MAX specifies that the label is placed at the maximum value of the data axis.

LEGENDLABEL= "text-string"

specifies a label that identifies the markers from the plot in the legend. By default, the label "Reference Line" is used.

Interaction: This option has no effect unless you also specify the NAME= option.
LINEATTRS= style-element <(options)> | (options)

specifies the appearance of the reference line. You can specify the appearance by using a style element or by using suboptions. If you specify a style element, you can additionally specify suboptions to override specific appearance attributes.

options can be one or more of the following:

COLOR= color

specifies the color of the line. For more information about specifying colors, see SAS/GRAPH Colors and Images in the SAS/GRAPH: Reference, Second Edition.

Default: The default color is specified by the ContrastColor attribute of the GraphReference style element in the current style.
PATTERN= line-pattern

specifies the line pattern for the line. You can reference SAS patterns by number or by name. See Line Patterns for a list of line patterns.

Default: The default line pattern is specified by the LinePattern attribute of the GraphReference style element in the current style.
THICKNESS= n <units>

specifies the thickness of the line. You can also specify the unit of measure. The default unit is pixels. See Units of Measurement for a list of the measurement units that are supported.

Default: The default line thickness is specified by the LineThickness attribute of the GraphReference style element in the current style.
NAME= "text-string"

specifies a name for the plot. You can use the name to refer to this plot in other statements.

NOCLIP

extends the plot axes to contain the reference lines. By default, if a reference line is created outside of the data range, then the reference line is not visible. This option has no effect if you do not create reference lines that are outside of the data range.

Restriction: This option is available with SAS 9.2 Phase 2 and later.
TRANSPARENCY= numeric-value

specifies the degree of transparency for the reference lines. Specify a value from 0.0 (completely opaque) to 1.0 (completely transparent).

Default: 0.0

Previous Page | Next Page | Top of Page