The SGPLOT Procedure |
REFLINE variable | 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= AUTO | MIN | MAX | |
LINEATTRS= style-element <(options)> | (options) | |
NOCLIP |
Plot options:
LEGENDLABEL= "text-string" | |
NAME= "text-string" | |
TRANSPARENCY= numeric-value |
Required Arguments |
draws a reference line for each value of the specified variable.
Restriction: | This argument is available with SAS 9.2 Phase 2 and later. |
draws one or more reference lines at the values that you specify.
Options |
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 |
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.
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 |
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. AUTO places the label automatically.
Default: | AUTO |
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. |
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:
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. |
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. |
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. |
specifies a name for the plot. You can use the name to refer to this plot in other statements.
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. |
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 |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.