Graphical methodsLinear modelsCategorical dataStructural equation modelsUtility macrosMy Books
Univariate displays
Bivariate displays
Multivariate displays
Cluster analysis
Maps
boxplot
density
dotplot
nqplot
splot
symbox
symplot
contour
ellipses
lowess
miplot
resline
sparkline
sunplot
surface
biplot
canplot
coplot
corrgram
cqplot
faces
genscat
hecan
hemat
hemreg
heplot
heplots
mpower
outlier
robcov
scatmat
scatter
stars
gtree
ccmap
map2gen
ANOVA
Regression
Multivariate
Transformations
Power
alleff
effplot
hovplot
meanplot
orpoly
poly
twoway
cpplot
effplot
partial
inflplot
robust
rsqdelta
hecan
hemat
hemreg
heplot
heplots
boxcox
boxglm
boxtid
sprdplot
fpower
mpower
power
rpower
Discrete distributions
Two-way tables
Mosaic displays
Generalized linear models
distplot
goodfit
ordplot
poisplot
rootgram
agree
agreeplot
corresp
ffold
fourfold
power2x2
powerrxc
sieve
sieveplot
missrc
genscat
mosaic
mosaics
mosmat
addvar
catplot
effplot
halfnorm
inflglim
inflogis
logodds
powerlog
robust
caliscmp
calisgfi
csmpower
eqs2ram
ram2dot
str2ram
Data utility
Graphics utility
Macro utility
Color
combine
combos
dummy
expgrid
interact
jitter
lags
map2gen
multisummary
mvnormal
sas2vsta
scale
slice
sort
stat2dat
table
axis
bars
boxanno
boxaxis
equate
gask
gbank
gdispla
genpat
gensym
gkill
gskip
inset
label
labels
lines
panels
points
polygons
pscale
regline
rug
expglm
defined
lastword
vexpand
words
bpycolors
brewerpal
colochrt
colorramp
SAS System for Statistical Graphics
Visualizing Categorical Data
Visual Statistics
gskip Device-independent macro for multiple plots gskip

Visualizing Categorical Data: gskip

$Version: 1.0 (02 Jan 1999)
Michael Friendly
York University

The gskip macro ( [download] get gskip.sas)

Device-independent macro for multiple plots

The GSKIP macro is designed to handle difficulties in producing multiple plots in one SAS job. For EPS, GIF, CGM and WMF drivers, it assigns a new output filename for the next plot. For FOILS (on continuous forms) it skips the normally blank non-foil separator page. Otherwise, it has no effect.

Usage

The GSKIP macro has one optional positional parameter. It relies on global macro parameters, DISPLAY, DEVTYP, FIG, GSASFILE, and GSASDIR. These parameters are normally initialized either in the AUTOEXEC.SAS file, or in device-specific macros. For example, for normal graphic output to the Graph Window, assign DISPLAY and DEVTYPE as
  %let devtype=SCREEN;
  %let displa=ON;

For EPS file output,

  %let devtype=EPS;
  %let fig=1;
  %let gsasfile=myfig;

GSKIP is normally used after each graphic procedure or macro to advance the FIG counter and open a new graphic output file. For example,

  proc gplot;
     plot y * x;
  %gskip();

Parameters

INC
The value by which the FIG counter is incremented, normally 1 (the default). Use the INC parameter after a plot with a BY statement. For example,
  proc gplot;
     plot y * x; by sex;
  %gskip(2);


Global Parameters

DISPLAY
String value, ON or OFF, usually set by the GDISPLA macro. The GISKP macro takes no action if DISPLAY=OFF.
DEVTYP
String value, the type of graphic device driver. The values EPS, GIF, CGM and WMF cause FIG= to be incremented and a new output filename assigned. If DEVTYPE=FOILS, a blank graphic page is produced. All others are ignored.
FIG
A numeric value, the number of the current figure.
GSASFILE
String value, the basename of the graphic output file(s). The output files are named according to the macro expression
     %scan(&gsasfile,1,.)&fig..%lowcase(&devtyp)

e.g., myfile1.eps, myfile2.eps, ....

GSASDIR
String value, the output directory in which the graphic files are written. If not specified, output goes to the current directory.

See also

gdispla Device-independent DISPLAY/NODISPLAY control

[Previous] [Next] [Up] [Contents] [Search]
Previous: goodfit Next: halfnorm Up: Appendix A Top: index.html