How to suppress the BY-line and/or BY-variable displayed with graphics procedures


When using a BY statement with graphics procedures, such as the GPLOT procedure or SGPLOT procedure, a BY-line is generated by default. Both the BY-line and the BY-variable can be suppressed.

To suppress the entire BY-line, specify the NOBYLINE option in an OPTIONS statement prior to the graphics procedure. See the following example:

options nobyline;

To suppress the name of the BY variable but still display the value of the BY variable, first use the OPTIONS statement shown above. Then, use a TITLE statement to display the value of the BY variable. See the following example:

title1 "#byval(byvariable-name)";