SAS/QC Graphics


Which Graphics Approach Should You Use?

Beginning with SAS 9.2, SAS/QC procedures can produce ODS Graphics output as an alternative to traditional graphics. Also beginning with SAS 9.2, the default appearance of traditional graphics is determined by the ODS style that is in effect for the ODS destination that you are using. You can prevent the ODS style from affecting the appearance of traditional graphics by specifying the NOGSTYLE system option. Therefore, you have three alternatives for producing graphical output with SAS/QC procedures:

  • traditional graphics without ODS styles

  • traditional graphics using ODS styles

  • ODS Graphics

The appropriate approach depends on your objective, as follows:

  • If you are working with a SAS program written prior to SAS 9.2, and your priority is to preserve the appearance of traditional graphics produced with SAS/QC procedures, you should specify the NOGSTYLE system option.

  • If you are writing a new SAS program, consider using traditional graphics with ODS style-dependent defaults to take advantage of their improved appearance while retaining control over every detail of your graphs with procedure options.

  • If you are writing a new SAS program, consider using ODS Graphics for the highest-quality graphics output and consistency with output from SAS/STAT procedures and other procedures that are enabled to use ODS Graphics.

The next two sections provide more details and examples of these approaches.