



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The concept of sas device drivers, focusing on the role of executable programs and device entries, device parameter settings, and the use of goptions statement in sas/graph. It covers topics like hsize, vsize, xmax, ymax, device resolution, cells, and graphic output area placement.
Typology: Study notes
1 / 5
This page cannot be seen from the preview
Don't miss anything!




The user’s SAS program
^
Device-independent Graphic Output
Generic commands that generate graphic elements like points, lines, text etc.
Device Driver
Device-dependent Graphic Output
Hardcopy Device
File
^
Monitor i.e., graphics printer, plotter etc.
Graphic Output Area
vsize=8.5 in
^ hsize=7.5 in^
^ xmax=10.0 in^
ymax=11.0 in
(^) Graphics Output Area
Placement of Graphic Elements
(^) Graphics Output Area
(^) Output of SAS/GRAPH p
Titles appear here (by default)
Footnotes appear here (by default)
GOPTIONS options ; cback= specify background color, for use with termi- nal/monitor (usually ignored by hardcopy device) colors=( ) default colors list: colors used for various elements of a graph separated by blanks. This list will be used if colors for these elements are not specified explicitly in SAS/GRAPH statements. This list overrides the colors list of the current device driver (see for e.g., Fig. ??) ftext= default font to be used for all text ctext= default color to be used for all text in the graph gunit= pct, in, cm or cell; unit for text height in title, note, footnote, symbol, axis, and legend state- ments; cell is the default unit if not specified here vpos= number of cells in vertical axis (10 to 300) hpos= number of cells in horizontal axis (10 to 300) hsize= in inches } specify size of display area. vsize= in inches device= device-driver-name e.g., ps300, pscolor, hp7480a, hplj4si, x4045p, etc. (Execute proc gdevice to view the complete list of device drivers supported in SAS/GRAPH) targetdevice= specify intended hardcopy device to display graph on the monitor as it would appear on that device (may not be an exact reproduction but SAS will duplicate it as close as possible) gaccess= specifies format and destination of graphics stream e.g., gsasfile gsfname= specifies graphics stream file name
PROC GPLOT < data=> < gout=> < annotate=>
PLOT plot-request(s) ... /
PLOT statement options:
vaxis=value-list vminor=n haxis=value-list hminor=n vm=n hm=n vaxis=axis-definition haxis=axis-definition overlay nolegend noaxes legend=legend-definition areas=n frame cframe=colorcaxis=color ctext=color fr cfr=color ca=color ct=color annotate=data-set-name anno=data-set-name href=value-list chref=color lhref=line-type ch=color lh=line-type vref=value-list cvref=color lvref=line-type cv=color lv=line-type
TITLEn
PROC GCHART < data=> < gout=> < annotate=>
HBAR chart variable(s) /
Options for HBAR include:
ascending descending noheading nolegend freq cfreq percent cpercent mean sum nostats axis=value-list raxis=value-list maxis=axis-definition axis=axis-definition raxis=axis-definition group=variable subgroup=variable sumvar=variable type=statistic discrete levels=number midpoints=value-list frame caxis=color ctext=color cframe=color coutline=color patternid=method legend=legend-definition name=quoted-string
PATTERNn options ; color= color for the bar or subgroup; if color is not specified c= the pattern statement will be repeated for each color in the colors list value= pattern for the bar/block, map/plot or pie/star as described in the text v= repeat= number of times same pattern statement is to be reused r=
Roman text fonts Character set for the Greek font
Line types for style= and line= options
Character set for the Math font
Character set for the special font
A subset of special symbols for plotting points
Plot Plot value= Symbol value= Symbol plus + hash # x × point · star ∗ dot • square circle ◦ diamond - (i.e.,hyphen) triangle + (i.e.,plus) ⊕
Set value= option exactly as shown and omit the font specification
Pattern statement: setting the value= option