Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
The REG Procedure

Example 55.6: Controlling Plot Appearance with Graphics Options

This example uses model fit summary statistics from the OUTEST= data set to create a plot for a model selection analysis. Global graphics statements and PLOT statement options are used to control the appearance of the plot.

   goptions ctitle=black   htitle=3.5pct ftitle=swiss
            ctext =magenta htext =3.0pct ftext =swiss
            cback =ligr    border;
   symbol1 v=circle c=red h=1 w=2;
   title1 'Selection=Rsquare';
   title2 'plot Rsquare versus the number of parameters P in '
          'each model';

   proc reg data=fitness;
      model Oxygen=Age Weight RunTime RunPulse RestPulse MaxPulse
            / selection=rsquare noprint;
      plot rsq.*np.
           / aic bic edf gmsep jp np pc sbc sp
             haxis=2 to 7 by 1
             caxis=red cframe=white ctext=blue
             modellab='Full Model' modelht=2.4
             statht=2.4;
   run;
In the GOPTIONS statement,
BORDER
frames the entire display
CBACK=
specifies the background color
CTEXT=
selects the default color for the border and all text, including titles, footnotes, and notes
CTITLE=
specifies the title, footnote, note, and border color
HTEXT=
specifies the height for all text in the display
HTITLE=
specifies the height for the first title line
FTEXT=
selects the default font for all text, including titles, footnotes, notes, the model label and equation, the statistics, the axis labels, the tick values, and the legend
FTITLE=
specifies the first title font

For more information on the GOPTIONS statement and other global graphics statements, refer to SAS/GRAPH Software: Reference.

Output 55.6.1: Controlling Plot Appearance and Plotting OUTEST= Statistics
regx1a.gif (5410 bytes)

In Output 55.6.1, note the following:

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.