Skip to Main Content
SAS 9.4 Graph Template Language, 3rd Edition
book

SAS 9.4 Graph Template Language, 3rd Edition

by SAS Documentation
August 2014
Intermediate to advanced content levelIntermediate to advanced
652 pages
20h 38m
English
SAS Institute
Content preview from SAS 9.4 Graph Template Language, 3rd Edition
else if (stock="Microsoft") then idx=2;
else if (stock="Intel") then idx=3;
run;
/* Create the template for the graph */
proc template;
define statgraph groupindex;
begingraph;
/* Define the graph. */
entrytitle "Tech Stocks 2002-2004";
entryfootnote halign=left "Source: SASHELP.STOCKS";
layout overlay;
seriesplot x=date y=close / index=idx group=stock
name="series" lineattrs=(thickness=2) display=(markers);
discretelegend "series";
endlayout;
endgraph;
end;
run;
/* Render the graph using the custom style. */
ods _all_ close;
ods html style=stocks;
proc sgrender data= stocks template=groupindex;
where date between "1jan02"d and "31dec04"D;
run;
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

SAS 9.4 Language Reference, 6th Edition

SAS 9.4 Language Reference, 6th Edition

SAS Institute

Publisher Resources

ISBN: 9781629593111