Previous Page | Next Page

The SGPANEL Procedure

KEYLEGEND Statement


Adds a legend to the plot.


Syntax

KEYLEGEND <"name-1" ... "name-n"> </ option(s)>;

option(s) can be any of the following:

ACROSS= n

BORDER | NOBORDER

DOWN= n

POSITION= position-value

TITLE= "text-string"


Optional Arguments

"name-1" ... "name-n"

specifies the names of one or more plots that you want to include in legend. Each name that you specify must correspond to a value that you entered for the NAME= option in a plot statement.

Note:   If you do not specify a name, then the legend contains references to all of the plots in the graph.  [cautionend]


Options

ACROSS= n

specifies the number of columns in the legend. By default, the number of columns is determined automatically.

Note:   Depending on the number of legend entries and the number of columns and rows that you specify, the legend might not fit in your graph. If your legend does not appear, then you might need to specify a different value for the ACROSS= option.  [cautionend]

BORDER | NOBORDER

specifies whether the border around the legend is visible. The BORDER option shows the border. The NOBORDER option hides the border.

Default: BORDER
DOWN= n

specifies the number of rows in the legend. By default, the number of rows is determined automatically.

Note:   Depending on the number of legend entries and the number of columns and rows that you specify, the legend might not fit in your graph. If your legend does not appear, then you might need to specify a different value for the DOWN= option.  [cautionend]

POSITION= position-value

specifies the position of the legend within the plot. The positions are as follows:

BOTTOM

places the legend at the bottom of the plot.

LEFT

places the legend at the left side of the plot.

RIGHT

places the legend at the right side of the plot.

TOP

places the legend at the top of the plot.

Note:   By default, if you use more than one KEYLEGEND statement, then each legend is placed in a different position.  [cautionend]

Default: BOTTOM
TITLE= "text-string"

adds a title to the legend.

Previous Page | Next Page | Top of Page