The SGPANEL Procedure |
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 |
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.
Options |
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.
specifies whether the border around the legend is visible. The BORDER option shows the border. The NOBORDER option hides the border.
Default: | BORDER |
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.
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.
Default: | BOTTOM |
adds a title to the legend.
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.