| The SGPLOT Procedure |
| Interaction: | The HLINE statement can be combined only with other categorization plot statements in the SGPLOT procedure. See Plot Content. |
| HLINE category-variable < / option(s)>; |
option(s) can be one or more options from the following categories:
Line options:
|
ALPHA= numeric-value | |
|
BREAK | |
|
CURVELABEL <= text-string> | |
|
CURVELABELPOS= MIN | MAX |START | END | |
|
DATALABEL <= variable> | |
|
FREQ= numeric-variable | |
|
LIMITS= BOTH | LOWER | UPPER | |
|
LIMITSTAT= CLM | STDDEV | STDERR | |
|
LINEATTRS= style-element <(options)> | (options) | |
|
MARKERATTRS= style-element <(options)> | (options) | |
|
MARKERS | |
|
MISSING | |
|
NUMSTD= n | |
|
RESPONSE= response-variable | |
|
STAT= FREQ | MEAN | SUM | |
|
WEIGHT= numeric-variable |
Plot options:
|
GROUP= variable | |
|
LEGENDLABEL= "text-string" | |
|
NAME= "text-string" | |
|
TRANSPARENCY= numeric-value | |
|
X2AXIS | |
|
Y2AXIS |
| Required Arguments |
specifies the variable that classifies the observations into distinct subsets.
| Options |
specifies the confidence level for the confidence limits. Specify a number between 0.00 (100% confidence) and 1.00 (0% confidence).
| Default: | .05 |
| Interaction: |
This option has no effect if you
do not specify LIMITSTAT=CLM.
If your plot is overlaid with other summary plots, then the first ALPHA value that you specify is used for all of the plots. |
creates a break in the line for each missing value for the category variable.
adds a label for the line. You can also specify the label text. If you do not specify a label, then the label from the response variable is used.
specifies the location of the curve label. Specify one of the following values:
places the curve label at the minimum value for the response axis.
places the curve label at the maximum value for the response axis.
places the curve label at the first point on the curve.
places the curve label at the last point on the curve.
| Default: | END |
displays a label for each data point. If you specify a variable, then the values of that variable are used for the data labels. If you do not specify a variable, then the values of the calculated response are used for the data labels.
specifies that each observation is repeated n times for computational purposes, where n is the value of the numeric variable. If n is not an integer, then it is truncated to an integer. If n is less than 1 or missing, then it is excluded from the analysis.
| Interaction: | If your plot is overlaid with other categorization plots, then the first FREQ variable that you specified is used for all of the plots. |
specifies a variable that is used to group the data. A separate plot is created for each unique value of the grouping variable. The plot elements for each group value are automatically distinguished by different visual attributes.
specifies the label that identifies the line chart in the legend. By default, the label of the response variable is used. If there is no response variable label, then the name of the response variable and the computed statistic (SUM or MEAN) are used. If you do not specify a response variable, then the legend label is "Frequency".
| Interaction: | The LEGENDLABEL= option has no effect if you also specify the GROUP= option in the same plot statement. |
adds limit lines to the plot. Specify one of the following values:
adds lower and upper limit lines to the plot.
adds lower limit lines to the plot.
adds upper limit lines to the plot.
By default, no limit lines are displayed. However, if you specify the LIMITSTAT= option, then the default is BOTH.
Note: Limit lines are displayed only when you specify STAT= MEAN. ![[cautionend]](../../../../common/61925/HTML/default/images/cautend.gif)
specifies the statistic for the limit lines. Specify one of the following statistics:
confidence limits
standard deviation
standard error
| Default: | CLM |
| Interaction: | If you specify the LIMITSTAT= option, then the default value for the LIMITS= option is BOTH. |
specifies the appearance of the lines in the line chart. 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 Software: Reference, Volumes 1 and 2.
| Default: |
For ungrouped data, the default color
is specified by the ContrastColor attribute of the GraphDataDefault style
element in the current style.
For grouped data, the default color is specified by the ContrastColor attribute of the GraphData1 ... GraphDatan style elements 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: |
For ungrouped data, the default line
pattern is specified by the LineStyle attribute of the GraphDataDefault style
element in the current style.
For grouped data, the default line pattern is specified by the LineStyle attribute of the GraphData1 ... GraphDatan style elements 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: |
For ungrouped data, the default line
thickness is specified by the LineThickness attribute of the GraphDataDefault
style element in the current style.
For grouped data, the default line thickness is specified by the LineThickness attribute of the GraphData1 ... GraphDatan style elements in the current style. |
specifies the appearance of the markers in the plot. This option has no effect unless you also specify the MARKERS option. 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 markers. For more information about specifying colors, see SAS/GRAPH Colors and Images in the SAS/GRAPH Software: Reference, Volumes 1 and 2.
| Default: |
For ungrouped data, the default color
is specified by the ContrastColor attribute of the GraphDataDefault style
element in the current style.
For grouped data, the default color is specified by the ContrastColor attribute of the GraphData1 ... GraphDatan style elements in the current style. |
specifies the size of the markers. You can also specify the unit of measurement. The default unit is pixels. See Units of Measurement for a list of the measurement units that are supported.
| Default: | The default marker size is specified by the MarkerSize attribute of the GraphDataDefault style element in the current style. |
specifies the symbol for the markers. See Marker Symbols for a list of valid marker symbols.
| Default: |
For ungrouped data, the default marker
symbol is specified by the MarkerSymbol attribute of the GraphDataDefault
style element in the current style.
For grouped data, the default marker symbol is specified by the MarkerSymbol attribute of the GraphData1 ... GraphDatan style elements in the current style. |
adds markers to the plot.
processes missing values as a valid category value and creates a line for it.
specifies a name for the plot. You can use the name to refer to this plot in other statements.
specifies the number of standard units for the limit lines, when you specify LIMITSTAT= STDDEV or LIMITSTAT= STDERR. You can specify any positive number, including decimals.
| Default: | 1 |
specifies a numeric response variable for the plot. The summarized values of the response variable are displayed for each value on the horizontal axis.
specifies the statistic for the horizontal axis. Specify one of the following statistics:
the frequencies for the category variable
the mean of the response variable
the sum of the response variable
If you do not specify the RESPONSE= option, then the FREQ statistic is the default. If you specify RESPONSE=, then the SUM statistic is the default.
specifies the degree of transparency for the lines and markers. Specify a value from 0.0 (completely opaque) to 1.0 (completely transparent).
| Default: | 0.0 |
specifies that each observation is weighted by a factor of w for computational purposes, where w is the value of the numeric variable. w can be any numeric value. If w is 0, negative or missing, then that observation is excluded from the analysis.
| Interaction: | If your plot is overlaid with other categorization plots, then the first WEIGHT variable that you specified is used for all of the plots. |
assigns the response variable to the secondary (top) horizontal axis.
assigns the category variable to the secondary (right) vertical axis.
Copyright © 2007 by SAS Institute Inc., Cary, NC, USA. All rights reserved.