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;
title2 'plot Rsquare versus the number of parameters P in '
proc reg data=fitness;
model Oxygen=Age Weight RunTime RunPulse RestPulse MaxPulse
/ selection=rsquare noprint;
/ 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
In the GOPTIONS statement,
- frames the entire display
- specifies the background color
- selects the default color for the border and all text,
including titles, footnotes, and notes
- specifies the title, footnote, note, and border color
- specifies the height for all text in the display
- specifies the height for the first title line
- 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
- 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
In Output 55.6.1, note the following:
- The PLOT statement option CTEXT= affects all text not controlled
by the CTITLE= option in the GOPTIONS statement. Hence, the GOPTIONS
statement option CTEXT=MAGENTA has no effect.
Therefore, the color of the title is black and all other text is blue.
- The area enclosed by the axes and the frame has a white
background, while the background outside the plot area is gray.
- The MODELHT= option allows the entire model equation to fit on
- The STATHT= option allows the statistics in the margin to
fit in one column.
- The displayed statistics and the fitted model equation refer to
the selected model. See the "High Resolution Graphics Plots" section for more information.
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.