SAS Institute. The Power to Know

SAS/GRAPH(R) 9.2: Statistical Graphics Procedures Guide

space
Previous Page | Next Page

The SGPLOT Procedure

REFLINE Statement


Creates a horizontal or vertical reference line.

Syntax

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

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

  • REFLINE options:

    AXIS= X | X2 | Y | Y2

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

    LABELLOC= INSIDE | OUTSIDE

    LABELPOS= MIN | MAX

    LINEATTRS= style-element <(options)> | (options)

  • Plot options:

    LEGENDLABEL= "text-string"

    NAME= "text-string"

    TRANSPARENCY= numeric-value


Required Arguments

value-1 <... value-n>

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


Options

AXIS= X | X2 | Y | Y2

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.

LABELLOC= INSIDE | OUTSIDE

specifies whether the labels are placed inside or outside of the plot area. The INSIDE option places the labels inside of the plot area. The OUTSIDE option places the labels outside of the plot area.

Default: INSIDE
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 Software: Reference, Volumes 1 and 2.

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

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

space
Previous Page | Next Page | Top of Page