/*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0304U01 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0304U01 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define titles and footnote */ title1 'Number of Men and Women in Wellness Program'; title2 height=4 pct 'for the Year 1988'; footnote1 justify=right 'D0304U01 '; /* chart the values of SEX */ proc gchart data=sampsio.fitness; hbar sex / des='D0304U01-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0304U02 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0304U02 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define the titles and footnote */ title1 'Frequency of Exercise'; title2 height=4 pct 'for Participants in Wellness Program'; footnote1 justify=right 'D0304U02 '; /* chart the values of SEX */ proc gchart data=sampsio.fitness; hbar exer / discrete des='D0304U02-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0304U03 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0304U03 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define titles and footnote */ title1 'Ages of Participants in Wellness Program'; title2 height=4 pct 'for the Year 1988'; footnote1 justify=right 'D0304U03 '; /* chart the values of AGE */ proc gchart data=sampsio.fitness; hbar age / des='D0304U03-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0304U04 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0304U04 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define titles and footnote */ title1 'Ages of Participants in Wellness Program'; title2 height=4 pct 'for the Year 1988'; footnote1 justify=right 'D0304U04 '; /* chart the values of AGE */ proc gchart data=sampsio.fitness; hbar age / missing des='D0304U04-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0304U05 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0304U05 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define titles and footnote */ title1 'Number of Men and Women in Wellness Program'; title2 height=4 pct 'for the Year 1988'; footnote1 justify=right 'D0304U05 '; /* chart the values of SEX */ proc gchart data=sampsio.fitness; hbar sex / midpoints='M' 'F' des='D0304U05-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0304U06 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0304U06 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define titles and footnote */ title1 'Ages of Participants in Wellness Program'; title2 height=4 pct 'for the Year 1988'; footnote1 justify=right 'D0304U06 '; /* chart the values of AGE */ proc gchart data=sampsio.fitness; hbar age / levels=8 des='D0304U06-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0304U07 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0304U07 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define titles and footnote */ title1 'Ages of Participants in Wellness Program'; title2 height=4 pct 'for the Year 1988'; footnote1 justify=right 'D0304U07 '; /* chart the values of AGE */ proc gchart data=sampsio.fitness; hbar age / midpoints=. 25 35 45 des='D0304U07-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0304U08 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0304U08 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS | | PROCS: FORMAT GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* create the format for the values of AGE */ proc format; value agefmt low-29='low - 29' 30-39='30 - 39' 40-49='40 - 49' 50-high='Over 49' .='Missing'; run; /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define titles and footnote */ title1 'Ages of Participants in Wellness Program'; title2 height=4 pct 'for the Year 1988'; footnote1 justify=right 'D0304U08 '; /* chart the values of AGE */ proc gchart data=sampsio.fitness; hbar age / missing discrete des='D0304U08-1'; format age agefmt.; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0305U01 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0305U01 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS | | PROCS: FORMAT GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* create the format for the values of AGE */ proc format; value agefmt low-29='low - 29' 30-39='30 - 39' 40-49='40 - 49' 50-high='Over 49' .='Missing'; run; /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define titles and footnote */ title1 'Ages of Participants in Wellness Program'; title2 height=4 pct 'for the Year 1988'; footnote1 justify=right 'D0305U01 '; /* chart the values of AGE */ proc gchart data=sampsio.fitness; hbar age / missing discrete type=percent des='D0305U01-1'; format age agefmt.; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0305U02 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0305U02 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS PATTERN GOPTIONS | | PROCS: FORMAT GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* create the format for the values of AGE */ proc format; value agefmt low-29='low - 29' 30-39='30 - 39' 40-49='40 - 49' 50-high='Over 49' .='Missing'; run; /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define titles and footnote */ title1 'Ages of Participants in Wellness Program'; title2 height=4 pct 'for the Year 1988'; footnote1 justify=right 'D0305U02 '; /* define the pattern for all bars */ pattern1 value=solid color=blue; /* chart the values of AGE */ proc gchart data=sampsio.fitness; hbar age / missing discrete type=percent des='D0305U02-1'; format age agefmt.; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0305U03 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0305U03 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS PATTERN GOPTIONS | | PROCS: FORMAT GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* create the format for the values of AGE */ proc format; value agefmt low-29='low - 29' 30-39='30 - 39' 40-49='40 - 49' 50-high='Over 49' .='Missing'; run; /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define titles and footnote */ title1 'Ages of Participants in Wellness Program'; title2 height=4 pct 'for the Year 1988'; footnote1 justify=right 'D0305U03 '; /* define the patterns for each bar */ pattern1 value=solid color=blue; pattern2 value=solid color=red; pattern3 value=solid color=green; pattern4 value=solid color=black; /* chart the values of AGE */ proc gchart data=sampsio.fitness; hbar age / missing discrete type=percent patternid=midpoint des='D0305U03-1'; format age agefmt.; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0305U04 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0305U04 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS PATTERN | | PROCS: FORMAT GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* create the format for the values of AGE */ proc format; value agefmt low-29='low - 29' 30-39='30 - 39' 40-49='40 - 49' 50-high='Over 49' .='Missing'; run; /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define titles and footnote */ title1 'Ages of Participants in Wellness Program'; title2 height=4 pct 'for the Year 1988'; footnote1 justify=right 'D0305U04'; /* define the patterns for each bar */ pattern1 value=solid color=blue; pattern2 value=solid color=red; pattern3 value=solid color=green; pattern4 value=solid color=black; /* chart the values of AGE */ proc gchart data=sampsio.fitness; hbar age / missing discrete type=percent patternid=midpoint freq percent des='D0305U04-1'; format age agefmt.; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0305U05 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0305U05 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS PATTERN AXIS | | PROCS: FORMAT GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* create the format for the values of AGE */ proc format; value agefmt low-29='low - 29' 30-39='30 - 39' 40-49='40 - 49' 50-high='Over 49' .='Missing'; run; /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define titles and footnote */ title1 'Ages of Participants in Wellness Program'; title2 height=4 pct 'for the Year 1988'; footnote1 justify=left '*Distribution is charted as percentages.' justify=right 'D0305U05 '; /* define the patterns for each bar */ pattern1 value=solid color=blue; pattern2 value=solid color=red; pattern3 value=solid color=green; pattern4 value=solid color=black; /* modify the response axis */ axis1 minor=none label=('Distribution of Ages*') length=50; /* chart the values of AGE */ proc gchart data=sampsio.fitness; hbar age / missing discrete type=percent patternid=midpoint freq percent frame raxis=axis1 des='D0305U05-1'; format age agefmt.; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0305U06 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0305U06 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS PATTERN AXIS | | PROCS: FORMAT GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* create the format for the values of AGE */ proc format; value agefmt low-29='low - 29' 30-39='30 - 39' 40-49='40 - 49' 50-high='Over 49' .='Missing'; run; /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define titles and footnote */ title1 'Ages of Participants in Wellness Program'; title2 height=4 pct 'for the Year 1988'; footnote1 justify=left '*Distribution is charted as percentages.' justify=right 'D0305U06 '; /* define the patterns for each bar */ pattern1 value=solid color=blue; pattern2 value=solid color=red; pattern3 value=solid color=green; pattern4 value=solid color=black; /* modify the response axis */ axis1 minor=none label=('Distribution of Ages*') length=50; /* modify the midpoint axis */ axis2 label=('Age at Start' justify=right 'of Program'); /* chart the values of AGE */ proc gchart data=sampsio.fitness; hbar age / missing discrete type=percent patternid=midpoint freq percent frame raxis=axis1 maxis=axis2 des='D0305U06-1'; format age agefmt.; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0305U07 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0305U07 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS PATTERN AXIS GOPTIONS | | PROCS: FORMAT GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* create the format for the values of AGE */ proc format; value agefmt low-29='low - 29' 30-39='30 - 39' 40-49='40 - 49' 50-high='Over 49' .='Missing'; run; /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define titles and footnote */ title1 'Ages of Participants in Wellness Program'; title2 height=4 pct 'for the Year 1988'; footnote1 justify=left '*Distribution is charted as percentages.' justify=right 'D0305U07 '; /* define the patterns for each bar */ pattern1 value=solid color=blue; pattern2 value=solid color=red; pattern3 value=solid color=green; pattern4 value=solid color=black; /* modify the response axis */ axis1 minor=none label=('Distribution of Ages*') length=50; /* modify the midpoint axis */ axis2 label=('Age at Start' justify=right 'of Program'); /* chart the values of AGE */ proc gchart data=sampsio.fitness; hbar age / missing discrete type=percent patternid=midpoint freq percent frame raxis=axis1 maxis=axis2 autoref clipref des='D0305U07-1'; format age agefmt.; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0306U01 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0306U01 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS PATTERN | | PROCS GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define title and footnote */ title1 'Average Energy Production, 1985 - 1988'; footnote1 justify=right 'D0306U01 '; /* define the pattern for all bars */ pattern1 value=solid color=blue; /* chart the average of PROD */ proc gchart data=sampsio.enprod; vbar engytype / type=mean sumvar=prod des='D0306U01-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0306U02 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0306U02 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS PATTERN | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define title and footnote */ title1 'Average Energy Production, 1985 - 1988'; footnote1 justify=right 'D0306U02 '; /* define the pattern for all bars */ pattern1 value=solid color=blue; /* chart the average of PROD */ proc gchart data=sampsio.enprod; vbar engytype / type=mean sumvar=prod width=8 space=.5 des='D0306U02-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0306U03 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0306U03 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS PATTERN | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define title and footnote */ title1 'Average Energy Production, 1985 - 1988'; footnote1 justify=right 'D0306U03 '; /* define the pattern for all bars */ pattern1 value=solid color=blue; /* chart the average of PROD */ proc gchart data=sampsio.enprod; vbar engytype / type=mean sumvar=prod width=8 space=.5 coutline=black des='D0306U03-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0306U04 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0306U04 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS PATTERN | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define title and footnote */ title1 'Average Energy Production, 1985 - 1988'; footnote1 justify=right 'D0306U04 '; /* define the pattern for all bars */ pattern1 value=solid color=blue; /* chart the average of PROD */ proc gchart data=sampsio.enprod; vbar engytype / type=mean sumvar=prod width=8 space=.5 coutline=black descending des='D0306U04-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0306U05 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0306U05 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS PATTERN | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define title and footnote */ title1 'Average Energy Production, 1985 - 1988'; footnote1 justify=right 'D0306U05 '; /* define the pattern for all bars */ pattern1 value=solid color=blue; /* chart the average of PROD */ proc gchart data=sampsio.enprod; vbar engytype / type=mean sumvar=prod width=8 space=.5 coutline=black descending mean des='D0306U05-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0306U06 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0306U06 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS PATTERN AXIS | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define title and footnote */ title1 'Average Energy Production, 1985 - 1988'; footnote1 justify=left "*Quadrillion Btu's" justify=right 'D0306U06 '; /* define the pattern for all bars */ pattern1 value=solid color=blue; /* modify the response axis */ axis1 minor=(number=1) label=('Avg. Amount' justify=right ' Produced*'); /* chart the average of PROD */ proc gchart data=sampsio.enprod; vbar engytype / type=mean sumvar=prod width=8 space=.5 coutline=black descending mean frame raxis=axis1 des='D0306U06-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0306U07 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0306U07 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS PATTERN AXIS | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define title and footnote */ title1 'Average Energy Production, 1985 - 1988'; footnote1 justify=left "*Quadrillion Btu's" justify=right 'D0306U07 '; /* define the pattern for all bars */ pattern1 value=solid color=blue; /* modify the response axis */ axis1 minor=(number=1) label=('Avg. Amount' justify=right ' Produced*'); /* modify the midpoint axis */ axis2 label=('Type of Energy') value=(angle=-55 'Coal' 'Natural Gas' 'Geothermal' 'Hydroelectric' 'Plant Liquids' 'Nuclear' 'Oil'); /* chart the average of PROD */ proc gchart data=sampsio.enprod; vbar engytype / type=mean sumvar=prod width=8 space=.5 coutline=black descending mean frame raxis=axis1 maxis=axis2 des='D0306U07-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0307U01 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0307U01 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3 hpos=100 vpos=45; /* define the titles and footnote */ title1 'Energy Production, 1987 and 1988'; footnote1 justify=right 'D0307U01 '; /* chart the sum of PRODUCED */ proc gchart data=sampsio.eprodcon; hbar engytype / type=sum sumvar=produced group=year des='D0307U01-1'; where year in(1987, 1988); run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0307U02 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0307U02 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS PATTERN | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3 hpos=100 vpos=45; /* define the titles and footnote */ title1 'Energy Production, 1987 and 1988'; footnote1 justify=right 'D0307U02 '; /* define the patterns for the groups */ pattern1 value=solid color=green; pattern2 value=solid color=blue; /* chart the sum of PRODUCED */ proc gchart data=sampsio.eprodcon; hbar engytype / type=sum sumvar=produced group=year patternid=group des='D0307U02-1'; where year in(1987, 1988); run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0307U03 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0307U03 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS PATTERN GOPTIONS | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3 hpos=100 vpos=45; /* define the titles and footnote */ title1 'Energy Production, 1987 and 1988'; footnote1 justify=right 'D0307U03 '; /* define the patterns for the groups */ pattern1 value=solid color=green; pattern2 value=solid color=blue; /* chart the sum of PRODUCED */ proc gchart data=sampsio.eprodcon; hbar engytype / type=sum sumvar=produced group=year patternid=group gspace=2 des='D0307U03-1'; where year in(1987, 1988); run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0307U04 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0307U04 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS PATTERN GOPTIONS | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3 hpos=100 vpos=45; /* define the titles and footnote */ title1 'Energy Production, 1987 and 1988'; footnote1 justify=right 'D0307U04 '; /* define the patterns for the groups */ pattern1 value=solid color=green; pattern2 value=solid color=blue; /* chart the sum of PRODUCED */ proc gchart data=sampsio.eprodcon; hbar engytype / type=sum sumvar=produced group=year patternid=group gspace=2 descending des='D0307U04-1'; where year in(1987, 1988); run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0307U05 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0307U05 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS PATTERN AXIS | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3 hpos=100 vpos=45; /* define the titles and footnote */ title1 'Energy Production, 1987 and 1988'; footnote1 justify=right 'D0307U05 '; /* define the patterns for the groups */ pattern1 value=solid color=green; pattern2 value=solid color=blue; /* define appearance of group axis */ axis1 order=(1988, 1987) label=none; /* define appearance of midpoint axis */ axis2 label=(height=3 'Types of Energy') value=(t=1 'Coal' t=2 'Natural Gas' t=3 'Geothermal' t=4 'Hydroelectric' t=5 'Nuclear' t=6 'Petroleum'); /* define appearance of response axis */ axis3 order=(0 to 25 by 5) minor=(number=4) label=("Quadrillion Btu's Produced"); /* chart the sum of PRODUCED */ proc gchart data=sampsio.eprodcon; hbar engytype / type=sum sumvar=produced group=year patternid=group gspace=2 gaxis=axis1 frame raxis=axis3 maxis=axis2 des='D0307U05-1'; where year in(1987,1988); run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0307U06 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0307U06 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS AXIS | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3 hpos=100 vpos=45; /* define the titles and footnote */ title1 'Energy Production, 1985 - 1988'; footnote1 justify=left "*Quadrillion Btu's" justify=right 'D0307U06 '; /* define the appearance of the response axis */ axis1 label=('Amount' justify=right 'Produced*'); /* define the appearance of the midpoint axis */ axis2 label=none; /* chart the sum of PRODUCED */ proc gchart data=sampsio.eprodcon; vbar year / type=sum sumvar=produced frame sum discrete raxis=axis1 maxis=axis2 space=3 width=7 subgroup=engytype des='D0307U06-1'; run; quit; goptions reset=all; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0307U07 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0307U07 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS AXIS PATTERN | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define the titles and footnote */ title1 'Energy Production, 1985 - 1988'; footnote1 justify=left "*Quadrillion Btu's" justify=right 'D0307U07 '; /* define the appearance of the response axis */ axis1 label=('Amount' justify=right 'Produced*'); /* define the appearance of the midpoint axis */ axis2 label=none; /* define the patterns for the subgroups */ pattern1 value=solid color=black; pattern2 value=solid color=blue; pattern3 value=solid color=green; pattern4 value=solid color=red; pattern5 value=x3 color=blue; pattern6 value=x3 color=green; /* chart the sum of PRODUCED */ proc gchart data=sampsio.eprodcon; vbar year / type=sum sumvar=produced frame sum discrete raxis=axis1 maxis=axis2 space=3 width=7 subgroup=engytype des='D0307U07-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0307U08 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0307U08 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS PATTERN LEGEND | | AXIS | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define the titles and footnote */ title1 'Energy Production, 1985 - 1988'; footnote1 justify=left "*Quadrillion Btu's" justify=right 'D0307U08 '; /* define the appearance of the response axis */ axis1 label=('Amount' justify=right 'Produced*'); /* define the appearance of the midpoint axis */ axis2 label=none; /* define the patterns for the subgroups */ pattern1 value=solid color=black; pattern2 value=solid color=blue; pattern3 value=solid color=green; pattern4 value=solid color=red; pattern5 value=x3 color=blue; pattern6 value=x3 color=green; /* modify the legend */ legend1 label=(position=(top left) 'Types of' justify=left 'Energy') value=('Coal' 'Natural Gas' 'Geothermal' 'Hydroelectric' 'Nuclear' 'Petroleum'); /* chart the sum of PRODUCED */ proc gchart data=sampsio.eprodcon; vbar year / type=sum sumvar=produced frame sum discrete raxis=axis1 maxis=axis2 space=3 width=7 subgroup=engytype legend=legend1 des='D0307U08-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0307U09 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0307U09 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS AXIS PATTERN | | LEGEND | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define the titles and footnote */ title1 'Energy Production, 1987 and 1988'; footnote1 justify=left "*Quadrillion Btu's" justify=right 'D0307U09 '; /* define the appearance of the response axis */ axis1 label=('Amount' justify=right 'Produced*'); /* define the appearance of the midpoint axis */ axis2 label=none value=(t=1 'Consumed' t=2 'Produced'); /* define the appearance of the group axis */ axis3 label=none; /* define the patterns for the subgroups */ pattern1 value=solid color=black; pattern2 value=solid color=blue; pattern3 value=solid color=green; pattern4 value=solid color=red; pattern5 value=x3 color=blue; pattern6 value=x3 color=green; /* modify the legend */ legend1 label=(position=(top left) 'Types of' justify=left 'Energy') value=('Coal' 'Natural Gas' 'Geothermal' 'Hydroelectric' 'Nuclear' 'Petroleum'); /* chart the sum of AMOUNT */ proc gchart data=sampsio.eprdcon2; vbar cptype / type=sum sumvar=amount sum width=8 space=.5 gspace=4 raxis=axis1 maxis=axis2 gaxis=axis3 legend=legend1 group=year subgroup=engytype des='D0307U09-1'; where year in(1987 1988); run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0310U01 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0310U01 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define the titles and footnote */ title1 'Number of Participants in Each Fitness Class'; title2 height=4 pct 'for the Year 1988'; footnote1 justify=right 'D0310U01 '; /* chart the values of TEACHER */ proc gchart data=sampsio.fitness; pie teacher / des='D0310U01-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0310U02 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0310U02 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define the titles and footnote */ title1 'Number of Times Participants Exercise Per Week'; title2 height=4 pct 'for the Year 1988'; footnote1 justify=right 'D0310U02 '; /* chart the values of SEX */ proc gchart data=sampsio.fitness; pie exer / discrete des='D0310U02-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0310U03 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0310U03 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define the titles and footnote */ title1 'Ages of Participants in Wellness Program'; title2 h=4 pct 'for the Year 1988'; footnote1 justify=right 'D0310U03 '; /* chart the values of AGE */ proc gchart data=sampsio.fitness; pie age / des='D0310U03-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0310U04 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0310U04 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define the titles and footnote */ title1 'Ages of Participants in Wellness Program'; title2 height=4 pct 'for the Year 1988'; footnote1 justify=right 'D0310U04 '; /* chart the values of AGE */ proc gchart data=sampsio.fitness; pie age / missing des='D0310U04-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0310U05 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0310U05 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define the titles and footnote */ title1 'Number of Participants in Each Wellness Class'; title2 height=4 pct 'for the Year 1988'; footnote1 justify=right 'D0310U05 '; /* chart the values of TEACHER */ proc gchart data=sampsio.fitness; pie teacher / midpoints='Yang' 'Czika' 'Amund' 'Reed' des='D0310U05-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0310U06 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0310U06 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define the titles and footnote */ title1 'Ages of Participants in Wellness Program'; title2 height=4 pct 'for the Year 1988'; footnote1 justify=right 'D0310U06 '; /* chart the values of AGE */ proc gchart data=sampsio.fitness; pie age / levels=5 des='D0310U06-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0310U07 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0310U07 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define the titles and footnote */ title1 'Ages of Participants in Wellness Program'; title2 height=4 pct 'for the Year 1988'; footnote1 justify=right 'D0310U07 '; /* chart the values of AGE */ proc gchart data=sampsio.fitness; pie age / midpoints=. 25 35 45 des='D0310U07-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0310U08 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0310U08 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS | | PROCS: FORMAT GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* create the format for the values of AGE */ proc format; value agefmt low-29='low - 29' 30-39='30 - 39' 40-49='40 - 49' 50-high='Over 49' .='Missing'; run; /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define titles and footnote */ title1 'Ages of Participants in Wellness Program'; footnote1 justify=right 'D0310U08 '; /* chart the values of AGE */ proc gchart data=sampsio.fitness; pie age / missing discrete des='D0310U08-1'; format age agefmt.; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0311U01 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0311U01 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define title and footnote */ title1 'Total Energy Production, 1985 - 1988'; footnote1 justify=right 'D0311U01 '; /* chart the sum of PROD */ proc gchart data=sampsio.enprod; pie engytype / sumvar=prod type=sum des='D0311U01-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0311U02 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0311U02 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define title and footnote */ title1 'Total Energy Production, 1985 - 1988'; footnote1 justify=right 'D0311U02 '; /* chart the sum of PROD */ proc gchart data=sampsio.enprod; pie engytype / sumvar=prod type=sum other=5 des='D0311U02-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0311U03 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0311U03 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS PATTERN | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define title and footnote */ title1 'Total Energy Production, 1985 - 1988'; footnote1 justify=right 'D0311U03 '; /* define the patterns */ pattern1 value=psolid color=red; pattern2 value=psolid color=blue; pattern3 value=p3n color=green; pattern4 value=p3n color=red; pattern5 value=p3n color=blue; pattern6 value=psolid color=green; pattern7 value=p3n color=black; pattern8 value=psolid color=black; /* chart the sum of PROD */ proc gchart data=sampsio.enprod; pie engytype / sumvar=prod type=sum other=5 des='D0311U03-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0311U04 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0311U04 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS PATTERN | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define title and footnote */ title1 'Total Energy Production, 1985 - 1988'; footnote1 justify=right 'D0311U04 '; /* define the patterns */ pattern1 value=psolid color=red; pattern2 value=psolid color=blue; pattern3 value=p3n color=green; pattern4 value=p3n color=red; pattern5 value=p3n color=blue; pattern6 value=psolid color=green; pattern7 value=p3n color=black; pattern8 value=psolid color=black; /* chart the sum of PROD */ proc gchart data=sampsio.enprod; pie engytype / sumvar=prod type=sum other=5 coutline=black des='D0311U04-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0311U05 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0311U05 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS PATTERN | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define title and footnote */ title1 'Total Energy Production, 1985 - 1988'; footnote1 justify=right 'D0311U05 '; /* define the patterns */ pattern1 value=psolid color=red; pattern2 value=psolid color=blue; pattern3 value=p3n color=green; pattern4 value=p3n color=red; pattern5 value=p3n color=blue; pattern6 value=psolid color=green; pattern7 value=p3n color=black; pattern8 value=psolid color=black; /* chart the sum of PROD */ proc gchart data=sampsio.enprod; pie engytype / sumvar=prod type=sum other=5 coutline=black explode='gas' des='D0311U05-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0311U06 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0311U06 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS PATTERN | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define title and footnote */ title1 'Total Energy Production, 1985 - 1988'; footnote1 justify=right 'D0311U06 '; /* define the patterns */ pattern1 value=psolid color=red; pattern2 value=psolid color=blue; pattern3 value=p3n color=green; pattern4 value=p3n color=red; pattern5 value=p3n color=blue; pattern6 value=psolid color=green; pattern7 value=p3n color=black; pattern8 value=psolid color=black; /* chart the sum of PROD */ proc gchart data=sampsio.enprod; pie engytype / sumvar=prod type=sum other=5 coutline=black invisible='gas' des='D0311U06-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0311U07 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0311U07 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS PATTERN | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define title and footnote */ title1 'Total Energy Production, 1985 - 1988'; footnote1 justify=right 'D0311U07 '; /* define the patterns */ pattern1 value=psolid color=red; pattern2 value=psolid color=blue; pattern3 value=p3n color=green; pattern4 value=p3n color=red; pattern5 value=p3n color=blue; pattern6 value=psolid color=green; pattern7 value=p3n color=black; pattern8 value=psolid color=black; /* chart the sum of PROD */ proc gchart data=sampsio.enprod; pie engytype / sumvar=prod type=sum other=5 coutline=black noheading des='D0311U07-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0311U08 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0311U08 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS PATTERN | | PROCS: FORMAT GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* format the values of engytype */ proc format; value $etype 'coal'='Coal' 'gas'='Gas' 'geotherm'='Geothermal' 'hydro'='Hydroelectric' 'lgas'='Liquid Gas' 'nuclear'='Nuclear' 'oil'='Oil'; run; /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define title and footnote */ title1 'Total Energy Production, 1985 - 1988'; footnote1 justify=right 'D0311U08 '; /* define the patterns */ pattern1 value=psolid color=red; pattern2 value=psolid color=blue; pattern3 value=p3n color=green; pattern4 value=p3n color=red; pattern5 value=p3n color=blue; pattern6 value=psolid color=green; pattern7 value=p3n color=black; pattern8 value=psolid color=black; /* chart the sum of PROD */ proc gchart data=sampsio.enprod; pie engytype / sumvar=prod type=sum other=5 coutline=black noheading des='D0311U08-1'; format engytype $etype.; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0311U09 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0311U09 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS PATTERN | | PROCS: FORMAT GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* format the values of engytype */ proc format; value $etype 'coal'='Coal' 'gas'='Gas' 'geotherm'='Geothermal' 'hydro'='Hydroelectric' 'lgas'='Liquid Gas' 'nuclear'='Nuclear' 'oil'='Oil'; run; /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define title and footnote */ title1 'Total Energy Production, 1985 - 1988'; footnote1 justify=right 'D0311U09 '; /* define the patterns */ pattern1 value=psolid color=red; pattern2 value=psolid color=blue; pattern3 value=p3n color=green; pattern4 value=p3n color=red; pattern5 value=p3n color=blue; pattern6 value=psolid color=green; pattern7 value=p3n color=black; pattern8 value=psolid color=black; /* chart the sum of PROD */ proc gchart data=sampsio.enprod; pie engytype / sumvar=prod type=sum other=5 coutline=black noheading percent=arrow value=none slice=arrow des='D0311U09-1'; format engytype $etype.; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0311U10 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0311U10 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS PATTERN | | PROCS: FORMAT GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* format the values of engytype */ proc format; value $etype 'coal'='Coal' 'gas'='Gas' 'geotherm'='Geothermal' 'hydro'='Hydroelectric' 'lgas'='Liquid Gas' 'nuclear'='Nuclear' 'oil'='Oil'; run; /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define title and footnote */ title1 'Total Energy Production, 1985 - 1988'; footnote1 justify=right 'D0311U10 '; /* define the patterns */ pattern1 value=psolid color=red; pattern2 value=psolid color=blue; pattern3 value=p3n color=green; pattern4 value=p3n color=red; pattern5 value=p3n color=blue; pattern6 value=psolid color=green; pattern7 value=p3n color=black; pattern8 value=psolid color=black; /* chart the sum of PROD */ proc gchart data=sampsio.enprod; pie engytype / sumvar=prod type=sum other=5 coutline=black noheading percent=arrow value=none slice=arrow angle=90 des='D0311U10-1'; format engytype $etype.; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0311U11 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0311U11 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS PATTERN | | PROCS: FORMAT GHCART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* format the values of engytype */ proc format; value $etype 'coal'='Coal' 'gas'='Gas' 'geotherm'='Geothermal' 'hydro'='Hydroelectric' 'lgas'='Liquid Gas' 'nuclear'='Nuclear' 'oil'='Oil'; run; /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=2.5; /* define title and footnote */ title1 'Total Energy Production, 1987 and 1988'; footnote1 height=3 justify=right 'D0311U11 '; /* define the patterns */ pattern1 value=psolid color=red; pattern2 value=psolid color=blue; pattern3 value=p3n color=green; pattern4 value=p3n color=red; pattern5 value=p3n color=blue; pattern6 value=psolid color=green; pattern7 value=p3n color=black; pattern8 value=psolid color=black; /* chart the sum of PROD */ proc gchart data=sampsio.enprod; pie engytype / sumvar=prod type=sum other=5 coutline=black noheading group=year across=2 des='D0311U11-1'; format engytype $etype.; label year='00'x; where year in(1987 1988); run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0312U01 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0312U01 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define titles and footnote */ title1 'Total Rejected Parts, By Month'; footnote1 justify=right 'D0312U01 '; /* chart the sum of REJECTS */ proc gchart data=sampsio.rejects; format date worddate3.; star date / sumvar=rejects type=sum discrete des='D0312U01-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0312U02 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0312U02 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define title and footnote */ title1 'Total Rejected Parts, By Month'; footnote1 justify=right 'D0312U02 '; /* chart the sum of REJECTS */ proc gchart data=sampsio.rejects; format date worddate3.; star date / sumvar=rejects discrete fill=solid des='D0312U02-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0312U03 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0312U03 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define title and footnote */ title1 'Total Rejected Parts, By Month'; footnote1 justify=right 'D0312U03 '; /* chart the sum of REJECTS */ proc gchart data=sampsio.rejects; format date worddate3.; star date / sumvar=rejects discrete noconnect des='D0312U03-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0312U04 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0312U04 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; title1 'Total Rejected Parts, By Month'; footnote1 height=3 justify=right 'D0312U04 '; /* chart the sum of REJECTS */ proc gchart data=sampsio.rejects; format date worddate3.; star date / sumvar=rejects type=sum discrete fill=solid noheading des='D0312U04-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0312U05 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0312U05 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; title1 'Total Rejected Parts, By Month'; footnote1 justify=right 'D0312U05 '; /* chart the sum of REJECTS */ proc gchart data=sampsio.rejects; format date worddate3.; star date / sumvar=rejects type=sum discrete fill=solid noheading angle=100 des='D0312U05-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0312U06 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0312U06 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; title1 'Total Rejected Parts, By Month'; footnote1 height=3 justify=right 'D0312U06 '; /* control size of labels */ goptions htext=2.5; /* chart the sum of REJECTS */ proc gchart data=sampsio.rejects; format date worddate3.; star date / sumvar=rejects type=sum discrete fill=solid noheading angle=100 slice=arrow des='D0312U06-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0312U07 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0312U07 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define title and footnote */ title1 'Total Rejected Parts, By Month'; footnote1 justify=right 'D0312U07 '; /* chart the sum of REJECTS */ proc gchart data=sampsio.rejects; format date worddate3.; star date / sumvar=rejects type=sum discrete fill=solid noheading group=site across=2 des='D0312U07-1'; label site='00'x; where site in('Sydney' 'Paris'); run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0315U01 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0315U01 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define title and footnote */ title1 'Number of Participants in Each Fitness Class'; footnote1 justify=right 'D0315U01 '; /* chart the values of SEX */ proc gchart data=sampsio.fitness; block teacher / des='D0315U01-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0315U02 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0315U02 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define title and footnote */ title1 'Number of Times Participants Exercise Per Week'; footnote1 justify=right 'D0315U02 '; /* chart the values of SEX */ proc gchart data=sampsio.fitness; block exer / discrete des='D0315U02-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0315U03 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0315U03 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define title and footnote */ title1 'Ages of Participants in Wellness Program'; footnote1 justify=right 'D0315U03 '; /* chart the values of SEX */ proc gchart data=sampsio.fitness; block age / des='D0315U03-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0315U04 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0315U04 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define the titles and footnote */ title1 'Number of Participants in Each Wellness Class'; title2 height=4 pct 'for the Year 1988'; footnote1 justify=right 'D0315U04 '; /* chart the values of TEACHER */ proc gchart data=sampsio.fitness; block teacher / midpoints='Yang' 'Czika' 'Amund' 'Reed' des='D0315U04-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0315U05 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0315U05 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define title and footnote */ title1 'Ages of Participants in Wellness Program'; footnote1 justify=right 'D0315U05 '; /* chart the values of AGE */ proc gchart data=sampsio.fitness; block age / levels=4 des='D0315U05-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0315U06 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0315U06 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define title and footnote */ title1 'Ages of Participants in Wellness Program'; footnote1 justify=right 'D0315U06 '; /* chart the values of AGE */ proc gchart data=sampsio.fitness; block age / midpoints=25 35 45 des='D0315U06-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0315U07 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0315U07 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define title and footnote */ title1 'Ages of Participants in Wellness Program'; footnote1 justify=right 'D0315U07 '; /* chart the values of AGE */ proc gchart data=sampsio.fitness; block age / midpoints=. 25 35 45 des='D0315U07-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0315U08 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0315U08 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS | | PROCS: FORMAT GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* create the format for the values of AGE */ proc format; value agefmt low-29='low - 29' 30-39='30 - 39' 40-49='40 - 49' 50-high='Over 49' .='Missing'; run; /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define titles and footnote */ title1 'Ages of Participants in Wellness Program'; title2 height=4 pct 'for the Year 1988'; footnote1 justify=right 'D0315U08 '; /* chart the values of AGE */ proc gchart data=sampsio.fitness; block age / missing discrete des='D0315U08-1'; format age agefmt.; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0316U01 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0316U01 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define title and footnote */ title1 'Total Production of Energy, 1985 - 1988'; footnote1 justify=right 'D0316U01 '; /* chart the sum of PROD */ proc gchart data=sampsio.enprod; block engytype / sumvar=prod type=sum midpoints='coal' 'gas' 'nuclear' des='D0316U01-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0316U02 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0316U02 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS PATTERN | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define title and footnote */ title1 'Total Production of Energy, 1985 - 1988'; footnote1 justify=right 'D0316U02 '; /* select the pattern and fill color */ pattern1 color=green value=solid; /* chart the sum of PROD */ proc gchart data=sampsio.enprod; block engytype / sumvar=prod type=sum midpoints='coal' 'gas' 'nuclear' des='D0316U02-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0316U03 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0316U03 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS PATTERN | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define title and footnote */ title1 'Total Production of Energy, 1985 - 1988'; footnote1 justify=right 'D0316U03 '; /* select the pattern and fill color */ pattern1 color=green value=solid; pattern2 color=blue value=solid; pattern3 color=red value=solid; /* chart the sum of PROD */ proc gchart data=sampsio.enprod; block engytype / sumvar=prod type=sum midpoints='coal' 'gas' 'nuclear' patternid=midpoint des='D0316U03-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0316U04 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0316U04 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS PATTERN | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define title and footnote */ title1 'Total Production of Energy, 1985 - 1988'; footnote1 justify=right 'D0316U04 '; /* select the pattern and fill color */ pattern1 color=green value=solid; pattern2 color=blue value=solid; pattern3 color=red value=solid; /* chart the sum of PROD */ proc gchart data=sampsio.enprod; block engytype / sumvar=prod type=sum midpoints='coal' 'gas' 'nuclear' patternid=midpoint caxis=blue des='D0316U04-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0316U05 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0316U05 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS PATTERN | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* define title and footnote */ title1 'Total Production of Energy, 1985 - 1988'; footnote1 justify=right 'D0316U05 '; /* select the pattern and fill color */ pattern1 color=green value=solid; pattern2 color=blue value=solid; pattern3 color=red value=solid; /* chart the sum of PROD */ proc gchart data=sampsio.enprod; block engytype / sumvar=prod type=sum midpoints='coal' 'gas' 'nuclear' patternid=midpoint caxis=blue noheading des='D0316U05-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0316U06 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0316U06 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS PATTERN | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3 hpos=60 vpos=45; /* define title and footnote */ title1 'Total Production of Energy, 1985 - 1988'; footnote1 justify=right 'D0316U06 '; /* select the pattern and fill color */ pattern1 color=green value=solid; pattern2 color=blue value=solid; pattern3 color=red value=solid; /* chart the sum of PROD */ proc gchart data=sampsio.enprod; block engytype / sumvar=prod type=sum midpoints='coal' 'nuclear' caxis=blue noheading group=year des='D0316U06-1'; where year in(1986 1987 1988); run; quit; goptions reset=all; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0316U07 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0316U07 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS PATTERN | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3; /* increase number of cells available for chart */ goptions hpos=95 vpos=47; /* define title and footnote */ title1 'Total Production of Energy, 1985 - 1988'; footnote1 justify=right 'D0316U07 '; /* select the pattern and fill color */ pattern1 color=green value=solid; pattern2 color=blue value=solid; pattern3 color=red value=solid; /* chart the sum of PROD */ proc gchart data=sampsio.enprod; block engytype / sumvar=prod type=sum midpoints='coal' 'nuclear' caxis=blue noheading group=year patternid=group des='D0316U07-1'; where year in(1986 1987 1988); label year='00'x; run; quit; /* reset HPOS= and VPOS= */ goptions hpos= vpos=; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0316U08 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0316U08 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3 hpos=60 vpos=45; /* define title and footnote */ title1 'Total Production of Energy, 1985 - 1988'; footnote1 justify=right 'D0316U08 '; /* chart the sum of PROD */ proc gchart data=sampsio.enprod; block year / sumvar=prod type=sum discrete subgroup=engytype des='D0316U08-1'; label year='00'x; run; quit; goptions reset=all; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0316U09 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0316U09 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS PATTERN | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3 hpos=60 vpos=45; /* define title and footnote */ title1 'Total Production of Energy, 1985 - 1988'; footnote1 justify=right 'D0316U09 '; /* select the pattern and fill color */ pattern1 color=green value=solid; pattern2 color=blue value=solid; pattern3 color=red value=solid; pattern4 color=black value=solid; pattern5 color=green value=x5; pattern6 color=blue value=x5; pattern7 color=red value=x5; /* chart the sum of PROD */ proc gchart data=sampsio.enprod; block year / sumvar=prod type=sum discrete subgroup=engytype noheading des='D0316U09-1'; label year='00'x; run; quit; goptions reset=all; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0316U10 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0316U10 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO DOC GRAPHICS GOPTIONS PATTERN LEGEND | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set default graphics options for example */ goptions reset=global colors=(black blue green red) gunit=pct cback=white border ftext=zapf htitle=6 htext=3 hpos=60 vpos=45; /* define title and footnote */ title1 'Total Production of Energy, 1985 - 1988'; footnote1 justify=right 'D0316U10 '; /* select the pattern and fill color */ pattern1 color=green value=solid; pattern2 color=blue value=solid; pattern3 color=red value=solid; pattern4 color=black value=solid; pattern5 color=green value=x5; pattern6 color=blue value=x5; pattern7 color=red value=x5; /* enhance the appearance of the legend */ legend1 frame label=('Energy Type'); /* chart the sum of PROD */ proc gchart data=sampsio.enprod; block year / sumvar=prod type=sum discrete subgroup=engytype noheading legend=legend1 des='D0316U10-1'; label year='00'x; run; quit; goptions reset=all; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0319U01 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0319U01 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GPLOT | | PROCS: GPLOT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'US Energy Consumption for 1955 - 1988'; footnote1 justify=right 'D0319U01 '; /* produce plot of two variables */ proc gplot data=sampsio.energy1; plot consumed*year / des='D0319U01-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0319U02 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0319U02 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GPLOT | | PROCS: GPLOT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'US Energy Consumption for 1955 - 1988'; footnote1 justify=right 'D0319U02 '; /* modify symbol characteristics */ symbol1 interpol=join width=2; /* produce plot of two variables */ proc gplot data=sampsio.energy1; plot consumed*year / des='D0319U02-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0319U03 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0319U03 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GPLOT | | PROCS: GPLOT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'US Energy Consumption for 1955 - 1988'; footnote1 justify=right 'D0319U03 '; /* modify symbol characteristics */ symbol1 interpol=join width=2 value=dot height=3 color=red; /* produce plot of two variables */ proc gplot data=sampsio.energy1; plot consumed*year / des='D0319U03-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0319U04 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0319U04 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GPLOT | | PROCS: GPLOT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* NOTE: this program cannot use goptions RESET=GLOBAL */ /* set selected graphics options for the examples */ goptions gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'US Energy Consumption for 1955 - 1988'; footnote1 justify=right 'D0319U04 '; /* specify a color for the plot symbols */ symbol1 cv=blue; /* produce plot of two variables */ proc gplot data=sampsio.energy1; plot consumed*year / des='D0319U04-1'; run; quit; /* cancel the symbol color */ symbol1 cv=; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0319U05 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0319U05 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GPLOT | | PROCS: GPLOT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'US Energy Consumption for 1955 - 1988'; footnote1 justify=right 'D0319U05 '; /* modify symbol characteristics */ symbol1 interpol=join width=2 value=dot height=3 color=red; /* produce plot of two variables */ proc gplot data=sampsio.energy1; plot consumed*year / frame des='D0319U05-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0319U06 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0319U06 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GPLOT | | PROCS: GPLOT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'US Energy Consumption for 1955 - 1988'; footnote1 justify=right 'D0319U06 '; /* modify symbol characteristics */ symbol1 interpol=join width=2 value=dot height=3 color=red; /* produce plot of two variables */ proc gplot data=sampsio.energy1; plot consumed*year / vref=70 lvref=2 frame des='D0319U06-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0319U07 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0319U07 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GPLOT | | PROCS: GPLOT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define titles and footnote */ title1 'US Energy Consumption for 1955-1988'; footnote1 justify=right 'D0319U07 '; /* modify symbol characteristics */ symbol1 interpol=join width=2 value=dot height=3 color=red; /* modify the horizontal axis */ axis1 order=(1955 to 1990 by 5) minor=none label=none offset=(3,3); /* produce plot of two variables */ proc gplot data=sampsio.energy1; plot consumed*year / haxis=axis1 vref=70 lvref=2 frame des='D0319U07-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0319U08 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0319U08 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GPLOT | | PROCS: GPLOT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnotes */ title1 'US Energy Consumption for 1955-1988'; footnote1 justify=right 'D0319U08 '; footnote2 angle=90 ' '; /* modify symbol characteristics */ symbol1 interpol=join width=2 value=dot height=3 color=red; /* modify the horizontal axis */ axis1 order=(1955 to 1990 by 5) minor=none label=none offset=(3,3); /* modify the vertical axis */ axis2 minor=(number=1 height=1) major=(height=1.5) value=(tick=5 color=red) offset=(,3) label=('Quadrillion' justify=right 'Btu.'); /* produce plot of two variables */ proc gplot data=sampsio.energy1; plot consumed*year / vaxis=axis2 haxis=axis1 vref=70 lvref=2 frame des='D0319U08-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0320U01 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0320U01 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GPLOT | | PROCS: GPLOT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define titles and footnote */ title1 'US Energy Production and Consumption'; title2 height=4 '1955 - 1988'; footnote1 justify=right 'D0320U01 '; /* modify symbol characteristics */ symbol1 interpol=join value=dot height=3; /* produce multiple plots */ proc gplot data=sampsio.energy2; plot consumed*year produced*year / frame des='D0320U01-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0320U02 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0320U02 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GPLOT | | PROCS: GPLOT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define titles and footnote */ title1 'US Energy Production and Consumption'; title2 height=4 '1955 - 1988'; footnote1 justify=right 'D0320U02 '; /* modify symbol characteristics */ symbol1 interpol=join value=dot height=3; /* modify the horizontal axis */ axis1 order=(1955 to 1990 by 5) minor=none label=none offset=(3,3); /* produce multiple plots with uniform axes */ proc gplot data=sampsio.energy2 uniform; plot consumed*year produced*year / frame haxis=axis1 des='D0320U02-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0320U03 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0320U03 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GPLOT | | PROCS: GPLOT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define titles and footnote */ title1 'US Energy Production and Consumption'; title2 height=4 '1955 - 1988'; footnote1 justify=right 'D0320U03 '; /* modify symbol characteristics */ symbol1 interpol=join value=dot height=3; /* modify the horizontal axis */ axis1 order=(1955 to 1990 by 5) minor=none label=none offset=(3,3); /* produce overlay plot */ proc gplot data=sampsio.energy2; plot consumed*year produced*year / frame haxis=axis1 overlay des='D0320U03-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0320U04 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0320U04 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GPLOT | | PROCS: GPLOT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define titles and footnote */ title1 'US Energy Production and Consumption'; title2 height=4 '1955 - 1988'; footnote1 justify=right 'D0320U04 '; /* modify symbol characteristics */ symbol1 interpol=join value=dot height=3 color=red; symbol2 interpol=join value=square height=3 color=blue; /* modify the horizontal axis */ axis1 order=(1955 to 1990 by 5) minor=none label=none offset=(3,3); /* produce overlay plot */ proc gplot data=sampsio.energy2; plot consumed*year produced*year / frame haxis=axis1 overlay des='D0320U04-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0320U05 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0320U05 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GPLOT | | PROCS: GPLOT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define titles and footnote */ title1 'US Energy Production and Consumption'; title2 height=4 '1955 - 1988'; footnote1 justify=right 'D0320U05 '; /* modify symbol characteristics */ symbol1 interpol=join value=dot height=3 color=red; symbol2 interpol=join value=square height=3 color=blue; /* modify the horizontal axis */ axis1 order=(1955 to 1990 by 5) minor=none label=none offset=(3,3); /* modify the vertical axis */ axis2 minor=(number=1 height=1) major=(height=1.5) offset=(,4) label=('Quadrillion' justify=center 'Btu.'); /* produce overlay plot */ proc gplot data=sampsio.energy2; plot consumed*year produced*year / frame haxis=axis1 vaxis=axis2 overlay des='D0320U05-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0320U06 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0320U06 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GPLOT | | PROCS: GPLOT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define titles and footnote */ title1 'US Energy Production and Consumption'; title2 height=4 '1955 - 1988'; footnote1 justify=right 'D0320U06 '; /* modify symbol characteristics */ symbol1 interpol=join value=dot height=3 color=red; symbol2 interpol=join value=square height=3 color=blue; symbol3 interpol=join value== height=4 color=green; /* modify the horizontal axis */ axis1 order=(1955 to 1990 by 5) minor=none label=none offset=(3,3); /* modify the vertical axis */ axis2 minor=(number=1 height=1) major=(height=1.5) offset=(,4) label=('Quadrillion' justify=center 'Btu.'); /* produce overlay plot */ proc gplot data=sampsio.energy2; plot consumed*year=1 produced*year=3 / frame haxis=axis1 vaxis=axis2 overlay des='D0320U06-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0320U07 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0320U07 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GPLOT | | PROCS: GPLOT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define titles and footnotes */ title1 'US Energy Production and Consumption'; title2 height=4 '1955 - 1988'; footnote1 color=red 'Energy Consumed ' font=special height=6 'J J J'; footnote2 color=green 'Energy Produced ' font=special height=6 'I I I'; footnote3 justify=right 'D0320U07 '; /* modify symbol characteristics */ symbol1 interpol=join value=dot height=3 color=red; symbol2 interpol=join value=square height=3 color=blue; symbol3 interpol=join value== height=4 color=green; /* modify the horizontal axis */ axis1 order=(1955 to 1990 by 5) minor=none label=none offset=(3,3); /* modify the vertical axis */ axis2 minor=(number=1 height=1) major=(height=1.5) offset=(,4) label=('Quadrillion' justify=center 'Btu.'); /* produce overlay plot */ proc gplot data=sampsio.energy2; plot consumed*year=1 produced*year=3 / frame haxis=axis1 vaxis=axis2 overlay des='D0320U07-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0320U08 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0320U08 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GPLOT | | PROCS: GPLOT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define titles and footnote */ title1 'US Energy Production and Consumption'; title2 height=4 '1955 - 1988'; footnote1 justify=right 'D0320U08 '; /* modify symbol characteristics */ symbol1 interpol=join value=none color=blue; symbol2 interpol=join value=none color=red; /* modify the horizontal axis */ axis1 order=(1955 to 1990 by 5) minor=none label=none offset=(0,0); /* modify the vertical axis */ axis2 minor=(number=1 height=1) major=(height=1.5) offset=(0,0) label=('Quadrillion' justify=center 'Btu.'); /* define patterns for the areas */ pattern1 value=msolid color=blue; pattern2 value=msolid color=red; /* produce the plot */ proc gplot data=sampsio.energy2; plot produced*year consumed*year / haxis=axis1 vaxis=axis2 overlay areas=2 des='D0320U08-1'; note move=(20,65) color=red 'Energy Consumed'; note move=(20,60) color=blue 'Energy Produced'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0320U09 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0320U09 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GPLOT | | PROCS: GPLOT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define titles and footnotes */ title1 'US Energy Production and Consumption'; title2 height=4 '1955 - 1988'; footnote1 color=red 'Energy Consumed ' font=special height=6 'J J J'; footnote2 color=green 'Energy Produced ' font=special height=6 'I I I'; footnote3 justify=right 'D0320U09 '; /* modify symbol characteristics */ symbol1 interpol=join value=dot height=3 color=red; symbol2 interpol=join value== height=4 color=green; /* modify the horizontal axis */ axis1 order=(1955 to 1990 by 5) minor=none label=none offset=(3,3); /* modify the vertical axes */ axis2 order=(30 to 80 by 10) offset=(,4) minor=(number=1 height=1) major=(height=1.5) label=('Quadrillion' justify=center 'Btu.'); /* produce the plot */ proc gplot data=sampsio.energy2; plot consumed*year / frame haxis=axis1 vaxis=axis2 des='D0320U09-1'; plot2 produced*year / vaxis=axis2; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0320U10 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0320U10 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GPLOT | | PROCS: GPLOT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define a title and footnote */ title1 'Growth of Employee Stock Ownership Plans'; footnote1 justify=right 'D0320U10 '; /* modify horizontal axis */ axis1 minor=none label=none offset=(3,3); /* modify left vertical axis */ axis2 label=(color=blue 'Number' justify=right 'of Plans') offset=(4,4) minor=(number=1) value=(color=blue); /* modify right vertical axis */ axis3 label=(color=red 'Millions of' justify=left 'Employees') offset=(4,4) minor=(number=1) value=(color=red); /* modify symbol characteristics */ symbol1 interpol=join value=square color=blue height=3; symbol2 interpol=join value=dot color=red height=3; /* produce plot with two vertical axes */ proc gplot data=sampsio.esop; plot plans*year / haxis=axis1 vaxis=axis2 frame des='D0320U10-1'; plot2 empl*year / vaxis=axis3; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0320U11 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0320U11 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GPLOT | | PROCS: GPLOT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define a title and footnote */ title1 'Growth of Employee Stock Ownership Plans'; footnote justify=right 'D0320U11 '; /* modify horizontal axis */ axis1 minor=none label=none offset=(3,3); /* modify left vertical axis */ axis2 label=(color=blue 'Number' justify=right 'of Plans') offset=(4,4) minor=(number=1) value=(color=blue); /* modify right vertical axis */ axis3 label=(color=red 'Millions of' justify=left 'Employees') offset=(4,4) minor=(number=1) value=(color=red); /* define symbol characteristics */ symbol1 interpol=join value=square height=3 color=blue; symbol2 interpol=join font=marker value=R height=5 color=red; /* produce plot with two vertical axes */ proc gplot data=sampsio.esop; plot plans*year / haxis=axis1 vaxis=axis2 frame des='D0320U11-1'; plot2 empl*year / vaxis=axis3; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0321U01 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0321U01 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GPLOT | | PROCS: GPLOT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define a title and footnote */ title1 'Unit Labor Costs for Canada, Japan, and US'; footnote1 justify=right 'D0321U01 '; /* modify the horizontal axis */ axis1 minor=none label=none offset=(3,3) length=60; /* modify vertical axis */ axis2 minor=(number=1 height=1) major=(height=1.5) label=('US Dollars'); /* produce a plot with a legend */ proc gplot data=sampsio.laborcst; plot dollars*year=country / haxis=axis1 vaxis=axis2 frame des='D0321U01-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0321U02 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0321U02 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GPLOT | | PROCS: GPLOT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define a title and footnote */ title1 'Unit Labor Costs for Canada, Japan, and US'; footnote1 justify=right 'D0321U02 '; /* modify the horizontal axis */ axis1 minor=none label=none offset=(3,3) length=60; /* modify vertical axis */ axis2 minor=(number=1 height=1) major=(height=1.5) label=('US Dollars'); /* modify symbol characteristics */ symbol1 interpol=join value=diamond color=red height=3; symbol2 interpol=join value=circle color=blue height=3; symbol3 interpol=join value=square color=green height=3; /* produce a plot with a legend */ proc gplot data=sampsio.laborcst; plot dollars*year=country / haxis=axis1 vaxis=axis2 frame des='D0321U02-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0321U03 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0321U03 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GPLOT | | PROCS: GPLOT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define a title and footnote */ title1 'Unit Labor Costs for Canada, Japan, and US'; footnote1 justify=right 'D0321U03 '; /* modify symbol characteristics */ symbol1 interpol=join value=diamond color=red height=3; symbol2 interpol=join value=circle color=blue height=3; symbol3 interpol=join value=square color=green height=3; /* modify horizontal axis */ axis1 minor=none label=none offset=(3,3) length=60; /* modify vertical axis */ axis2 minor=(number=1 height=1) major=(height=1.5) label=('US Dollars'); /* modify the legend */ legend1 frame label=none value=(tick=3 'United States') shape=symbol(6,3); /* produce a plot with a legend */ proc gplot data=sampsio.laborcst; plot dollars*year=country / frame haxis=axis1 vaxis=axis2 legend=legend1 des='D0321U03-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0321U04 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0321U04 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GPLOT | | PROCS: GPLOT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define a title and footnote */ title1 'Unit Labor Costs for Canada, Japan, and US'; footnote1 justify=right 'D0321U04 '; /* modify symbol characteristics */ symbol1 interpol=join value=diamond color=red height=3; symbol2 interpol=join value=circle color=blue height=3; symbol3 interpol=join value=square color=green height=3; /* modify horizontal axis */ axis1 minor=none label=none offset=(3,3) length=60; /* modify left vertical axis */ axis2 minor=(number=1 height=1) major=(height=1.5) label=('US Dollars'); /* modify the legend */ legend1 frame label=none value=(tick=3 'United States') shape=symbol(6,3); /* produce plot with right axis */ proc gplot data=sampsio.labrcst2; plot dollars*year=country / frame haxis=axis1 vaxis=axis2 legend=legend1 des='D0321U04-1'; plot2 yen*year; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0321U05 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0321U05 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GPLOT | | PROCS: GPLOT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define a title and footnote */ title1 'Unit Labor Costs for Canada, Japan, and US'; footnote1 justify=right 'D0321U05 '; /* modify symbol characteristics */ symbol1 interpol=join value=diamond color=red height=3; symbol2 interpol=join value=circle color=blue height=3; symbol3 interpol=join value=square color=green height=3; /* modify horizontal axis */ axis1 minor=none label=none offset=(3,3) length=60; /* modify left vertical axis */ axis2 order=(100 to 190 by 10) minor=(number=1 height=1) major=(height=1.5) label=('US Dollars'); /* modify right vertical axis */ axis3 order=(12500 to 23750 by 1250) minor=(number=1 height=1) major=(height=1.5) label=('Yen'); /* modify the legend */ legend1 frame label=none value=(tick=3 'United States') shape=symbol(6,3); /* produce plot with right axis */ proc gplot data=sampsio.labrcst2; plot dollars*year=country / frame haxis=axis1 vaxis=axis2 legend=legend1 des='D0321U05-1'; plot2 yen*year / vaxis=axis3; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0321U06 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0321U06 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GPLOT | | PROCS: GPLOT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define a title and footnote */ title1 'Unit Labor Costs for Canada, Japan, and US'; footnote1 justify=right 'D0321U06 '; /* modify symbol characteristics */ symbol1 interpol=join value=diamond color=red height=3; symbol2 interpol=join value=circle color=blue height=3; symbol3 interpol=join value=square color=green height=3; symbol4 interpol=none value=none; /* modify horizontal axis */ axis1 minor=none label=none offset=(3,3) length=60; /* modify left vertical axis */ axis2 order=(100 to 190 by 10) minor=(number=1 height=1) major=(height=1.5) label=('US Dollars'); /* modify right vertical axis */ axis3 order=(12500 to 23750 by 1250) minor=(number=1 height=1) major=(height=1.5) label=('Yen'); /* modify the legend */ legend1 frame label=none value=(tick=3 'United States') shape=symbol(6,3); /* produce plot with right axis */ proc gplot data=sampsio.labrcst2; plot dollars*year=country / frame haxis=axis1 vaxis=axis2 legend=legend1 des='D0321U06-1'; plot2 yen*year / vaxis=axis3; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0321U07 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0321U07 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GPLOT | | PROCS: GPLOT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define the titles and footnote */ title1 'US Energy Production and Consumption'; title2 height=4 '1955 - 1988'; footnote1 justify=right 'D0321U07 '; /* modify symbol characteristics */ symbol1 interpol=join value=dot height=3 color=red; symbol2 interpol=join value=square height=3 color=blue; /* modify the horizontal axis */ axis1 order=(1955 to 1990 by 5) minor=none label=none offset=(2,0); /* modify vertical axis */ axis2 order=(35, 40 to 80 by 5) major=(height=1.5) offset=(0,4) minor=none label=('Quadrillion' justify=center 'Btu.'); /* modify legend characteristics */ legend1 frame label=none value=('Energy Consumed' 'Energy Produced') shape=symbol(6,3); /* produce plot with a legend */ proc gplot data=sampsio.energy3; plot btu*year=energy / frame haxis=axis1 vaxis=axis2 legend=legend1 des='D0321U07-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0322U01 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0322U01 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GPLOT | | PROCS: GPLOT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'Relation of Resting Heart Rate to Aerobic Power'; footnote1 justify=right 'D0322U01 '; /* modify symbol characteristics */ symbol1 value=dot height=3 cv=red; /* produce a scatter plot */ proc gplot data=sampsio.fitness; plot heart*aero / frame des='D0322U01-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0322U02 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0322U02 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GPLOT | | PROCS: GPLOT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'Relation of Resting Heart Rate to Aerobic Power'; footnote1 justify=right 'D0322U02 '; /* modify symbol characteristics */ symbol1 interpol=rl ci=blue value=dot height=3 cv=red; /* produce a scatter plot */ proc gplot data=sampsio.fitness; plot heart*aero / frame des='D0322U02-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0322U03 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0322U03 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GPLOT | | PROCS: GPLOT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'Relation of Resting Heart Rate to Aerobic Power'; footnote1 justify=right 'D0322U03 '; /* modify symbol characteristics */ symbol1 interpol=rlclm90 co=green ci=blue value=dot height=3 cv=red; /* produce a scatter plot */ proc gplot data=sampsio.fitness; plot heart*aero / frame des='D0322U03-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0322U04 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0322U04 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GPLOT | | PROCS: GPLOT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'Relation of Resting Heart Rate to Aerobic Power'; footnote1 justify=right 'D0322U04 '; /* modify symbol characteristics */ symbol1 interpol=sm50s co= ci=blue value=dot height=3 cv=red; /* produce a scatter plot */ proc gplot data=sampsio.fitness; plot heart*aero / frame des='D0322U04-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0322U05 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0322U05 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GPLOT | | PROCS: GPLOT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'Relation of Resting Heart Rate to Aerobic Power'; footnote1 justify=right 'D0322U05 '; /* modify symbol characteristics */ symbol1 interpol=sm50s ci=blue value=dot height=3 cv=red; /* modify horizontal axis */ axis1 label=('Aerobic Power') minor=(number=1) offset=(0,0); /* modify vertical axis */ axis2 label=('Resting' justify=right 'Heart Rate') offset=(0,0) minor=(number=4 height=1) major=(height=1.5); /* produce a scatter plot */ proc gplot data=sampsio.fitness; plot heart*aero / frame haxis=axis1 vaxis=axis2 des='D0322U05-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0323U01 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0323U01 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GPLOT | | PROCS: GPLOT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'Heart Rate in Relation to Exercise'; footnote1 justify=right 'D0323U01 '; /* modify symbol characteristics */ symbol1 value=dot height=2 cv=red; /* produce the plot */ proc gplot data=sampsio.fitness; plot heart*exer / frame des='D0323U01-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0323U02 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0323U02 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GPLOT | | PROCS: GPLOT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'Heart Rate in Relation to Exercise'; footnote1 justify=right 'D0323U02 '; /* modify symbol characteristics */ symbol1 value=dot height=2 cv=red; /* modify horizontal axis */ axis1 label=('Number of Workouts Per Week') minor=none offset=(3,3) length=60; /* modify vertical axis */ axis2 label=('Resting' justify=right 'Heart Rate') major=(height=1.5) minor=(number=4 height=1); /* produce the plot */ proc gplot data=sampsio.fitness; plot heart*exer / frame haxis=axis1 vaxis=axis2 des='D0323U02-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0323U03 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0323U03 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GPLOT | | PROCS: GPLOT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'Heart Rate in Relation to Exercise'; title2 height=4 '(Plot Showing One Standard Deviation About the Mean)'; footnote1 justify=right 'D0323U03 '; /* modify symbol characteristics */ symbol1 interpol=std1t co=blue value=dot height=2 cv=red; /* modify horizontal axis */ axis1 label=('Number of Workouts Per Week') minor=none offset=(3,3) length=60; /* modify vertical axis */ axis2 label=('Resting' justify=right 'Heart Rate') major=(height=1.5) minor=(number=4 height=1); /* produce the plot */ proc gplot data=sampsio.fitness; plot heart*exer / frame haxis=axis1 vaxis=axis2 des='D0323U03-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0323U04 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0323U04 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GPLOT | | PROCS: GPLOT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'Heart Rate in Relation to Exercise'; title2 height=4 '(Plot Showing One Standard Deviation About the Mean)'; footnote1 justify=right 'D0323U04 '; /* modify symbol characteristics */ symbol1 interpol=std1tj co=blue ci=red value=none; /* modify horizontal axis */ axis1 label=('Number of Workouts Per Week') minor=none offset=(3,3) length=60; /* modify vertical axis */ axis2 label=('Resting' justify=right 'Heart Rate') major=(height=1.5) minor=(number=4 height=1); /* produce the plot */ proc gplot data=sampsio.fitness; plot heart*exer / frame haxis=axis1 vaxis=axis2 des='D0323U04-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0323U05 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0323U05 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GPLOT | | PROCS: GPLOT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define titles and footnote */ title1 'Nikkei Stock Average'; title2 height=4 'High-Low-Close Values March 19 - April 13, 1990'; footnote1 justify=right 'D0323U05 '; /* modify symbol characteristics */ symbol1 interpol=hiloct co=blue; /* produce the plot */ proc gplot data=sampsio.nikkei; plot points*date / frame des='D0323U05-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0323U06 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0323U06 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GPLOT | | PROCS: GPLOT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define titles and footnote */ title1 'Nikkei Stock Average'; title2 height=4 'High-Low-Close Values March 19 - April 13, 1990'; footnote1 justify=right 'D0323U06 '; /* modify symbol characteristics */ symbol1 interpol=hiloctj ci=red co=blue; /* produce the plot */ proc gplot data=sampsio.nikkei; plot points*date / frame des='D0323U06-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0323U07 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0323U07 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GPLOT | | PROCS: GPLOT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define titles and footnote */ title1 'Nikkei Stock Average'; title2 height=4 'High-Low-Close Values March 19 - April 13, 1990'; footnote1 justify=right 'D0323U07 '; /* modify symbol characteristics */ symbol1 interpol=hiloctj ci=red co=blue; /* modify the horizontal axis */ axis1 order=('18MAR90'd to '15APR90'd by week) major=(height=1.5) minor=(number=6 height=1) label=none; /* modify vertical axis */ axis2 label=none major=(height=1.5) minor=(number=1 height=1); /* generate the plot */ proc gplot data=sampsio.nikkei; plot points*date / frame haxis=axis1 vaxis=axis2 des='D0323U07-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0324U01 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0324U01 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GPLOT | | PROCS: GPLOT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define titles and footnote */ title1 'World Population'; title2 height=4 'Relative Size and Annual Percentage Rate of Growth by Region'; footnote1 justify=right 'D0324U01 '; /* produce bubble plot */ proc gplot data=sampsio.worldpop; bubble rate*region=pop90 / frame des='D0324U01-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0324U02 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0324U02 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GPLOT | | PROCS: GPLOT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /*libname sampsio 'SAS-data-library';*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define titles and footnote */ title1 'World Population'; title2 height=4 'Relative Size and Annual Percentage Rate of Growth by Region'; footnote1 justify=right 'D0324U02 '; /* modify horizontal axis */ axis1 label=none value=(angle=40 tick=3 'Australia' justify=right 'New Zealand' tick=5 'North' justify=right 'America' tick=6 'South' justify=right 'America') offset=(5,5); /* modify vertical axis */ axis2 order=(0.0 to .03 by .01) offset=(5,5) minor=none label=('Annual' justify=right 'Percentage' justify=right 'Growth'); /* produce bubble plot */ proc gplot data=sampsio.worldpop; bubble rate*region=pop90 / haxis=axis1 vaxis=axis2 frame des='D0324U02-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0324U03 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0324U03 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GPLOT | | PROCS: GPLOT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define titles and footnote */ title1 'World Population'; title2 height=4 'Relative Size and Annual Percentage Rate of Growth by Region'; footnote1 justify=left 'Predicted Population in Millions' justify=right 'D0324U03 '; /* modify horizontal axis */ axis1 label=none value=(angle=40 tick=3 'Australia' justify=right 'New Zealand' tick=5 'North' justify=right 'America' tick=6 'South' justify=right 'America') offset=(5,5); /* modify vertical axis */ axis2 order=(0.0 to .03 by .01) offset=(5,5) minor=none label=('Annual' justify=right 'Percentage' justify=right 'Growth'); /* produce bubble plot */ proc gplot data=sampsio.worldpop; bubble rate*region=pop90 / haxis=axis1 vaxis=axis2 frame blabel bsize=12 bcolor=green des='D0324U03-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0324U04 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0324U04 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GPLOT | | PROCS: GPLOT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define titles and footnote1 */ title1 'World Population'; title2 height=4 'Relative Size and Annual Percentage Rate of Growth by Region'; footnote1 justify=left 'Predicted Population in Millions' justify=right 'D0324U04 '; /* modify horizontal axis */ axis1 label=none value=(angle=40 tick=3 'Australia' justify=right 'New Zealand' tick=5 'North' justify=right 'America' tick=6 'South' justify=right 'America') offset=(5,5); /* modify vertical axis */ axis2 order=(0.0 to .03 by .01) offset=(5,5) minor=none label=('Annual' justify=right 'Percentage' justify=right 'Growth'); /* modify right vertical axis */ axis3 order=(0.0 to .03 by .01) offset=(5,5) minor=none label=none; /* produce bubble plot */ proc gplot data=sampsio.worldpop; bubble rate*region=pop90 / haxis=axis1 vaxis=axis2 frame blabel bsize=12 bcolor=green des='D0324U04-1'; bubble2 rate*region=pop90 / vaxis=axis3 bsize=12 bcolor=green; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0327U01 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0327U01 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GMAP MAPS | | PROCS: GMAP | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set standard graphics options */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'Population of Australia'; footnote1 justify=right 'D0327U01 '; /* produce a choropleth map of population data */ proc gmap map=maps.austral data=sampsio.auspop; id id; choro pop / des='D0327U01-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0327U02 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0327U02 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GMAP FORMAT MAPS | | PROCS: GMAP FORMAT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* create a format for POP */ proc format; value popfmt low-499999='Under .5 million' 500000-1999999='.5 to 2 million' 2000000-3999999='2 to 4 million' 4000000-high='Over 4 million'; /* define title and footnote */ title1 'Population of Australia'; footnote1 justify=right 'D0327U02 '; /* produce a choropleth map with formatted values */ proc gmap map=maps.austral data=sampsio.auspop; /* assign the format to the response variable */ format pop popfmt.; id id; choro pop / discrete des='D0327U02-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0327U03 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0327U03 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GMAP FORMAT MAPS | | PROCS: GMAP FORMAT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* create the format POPFMT */ proc format; value popfmt low-499999='Under .5 million' 500000-1999999='.5 to 2 million' 2000000-3999999='2 to 4 million' 4000000-high='Over 4 million'; /* define title and footnote */ title1 'Population of Australia'; footnote1 justify=right 'D0327U03 '; /* define patterns */ pattern1 value=msolid color=green; pattern2 value=msolid color=lib; pattern3 value=msolid color=blue; pattern4 value=msolid color=red; /* produce a choropleth map */ proc gmap map=maps.austral data=sampsio.auspop; format pop popfmt.; id id; choro pop / discrete des='D0327U03-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0327U04 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0327U04 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GMAP FORMAT MAPS | | PROCS: GMAP FORMAT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* create format POPFMT */ proc format; value popfmt low-499999='Under .5 million' 500000-1999999='.5 to 2 million' 2000000-3999999='2 to 4 million' 4000000-high='Over 4 million'; /* define title and footnote */ title1 'Population of Australia'; footnote1 justify=right 'D0327U04 '; /* define patterns */ pattern1 value=msolid color=green; pattern2 value=msolid color=lib; pattern3 value=msolid color=blue; pattern4 value=msolid color=red; /* produce a choropleth map */ proc gmap map=maps.austral data=sampsio.auspop; format pop popfmt.; id id; choro pop / discrete coutline=black des='D0327U04-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0327U05 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0327U05 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GMAP FORMAT MAPS | | PROCS: GMAP FORMAT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* create the format POPFMT */ proc format; value popfmt low-499999='Under .5 million' 500000-1999999='.5 to 2 million' 2000000-3999999='2 to 4 million' 4000000-high='Over 4 million'; /* define title and footnote */ title1 'Population of Australia'; footnote1 justify=right 'D0327U05 '; /* define patterns */ pattern1 value=msolid color=green; pattern2 value=msolid color=lib; pattern3 value=msolid color=blue; pattern4 value=msolid color=red; /* modify the legend */ legend1 label=(position=middle 'Number' justify=left 'of People') shape=bar(3,3); /* produce a choropleth map */ proc gmap map=maps.austral data=sampsio.auspop; format pop popfmt.; id id; choro pop / discrete coutline=black legend=legend1 des='D0327U05-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0327U06 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0327U06 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GMAP MAPS | | PROCS: GMAP | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set standard graphics options */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'Map of Australia'; footnote1 justify=right 'D0327U06 '; /* produce a choropleth map */ proc gmap map=maps.austral data=maps.austral; id id; choro id / discrete des='D0327U06-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0327U07 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0327U07 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GMAP MAPS | | PROCS: GMAP | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set standard graphics options */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'Map of Ecuador and Peru'; footnote1 justify=right 'D0327U07 '; /* define pattern */ pattern1 value=mempty; /* produce a choropleth map */ proc gmap map=maps.ecuaperu data=maps.ecuaperu; id country id; choro country / discrete nolegend des='D0327U07-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0328U01 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0328U01 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GMAP MAPS | | PROCS: GMAP | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global colors=(black blue green red) cback=white gunit=pct ftext=zapf htitle=6 htext=3 border; /* define title and footnote */ title1 'Leading Gold Producers for 1988'; footnote1 justify=right 'D0328U01 '; /* define patterns */ pattern1 value=msolid color=green; pattern2 value=msolid color=blue; pattern3 value=msolid color=red; pattern4 value=msolid color=lib; /* produce a choropleth map */ proc gmap map=maps.worldprj data=sampsio.wrldgold; id id; choro ounces / coutline=black des='D0328U01-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0328U02 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0328U02 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GMAP MAPS | | PROCS: GMAP | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global colors=(black blue green red) cback=white gunit=pct ftext=zapf htitle=6 htext=3 border; /* define title and footnote */ title1 'Leading Gold Producers for 1988'; footnote1 justify=right 'D0328U02 '; /* define patterns */ pattern1 value=msolid color=green; pattern2 value=msolid color=blue; pattern3 value=msolid color=red; pattern4 value=msolid color=lib; /* produce a choropleth map */ proc gmap map=maps.worldprj data=sampsio.wrldgold all; id id; choro ounces / coutline=black des='D0328U02-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0328U03 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0328U03 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GMAP FORMAT MAPS | | PROCS: GMAP FORMAT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global colors=(black blue green red) cback=white gunit=pct ftext=zapf htitle=6 htext=3 border; /* create the format GOLDFMT */ proc format; value goldfmt low-999999='Under 1 million' 1000000-9999999='1 to 10 million' 10000000-19999999='10 to 20 million'; /* define title and footnote */ title1 'Leading Gold Producers for 1988'; footnote1 justify=right 'D0328U03 '; /* define patterns */ pattern1 value=msolid color=green; pattern2 value=msolid color=blue; pattern3 value=msolid color=red; /* produce a choropleth map */ proc gmap map=maps.worldprj data=sampsio.wrldgold all; format ounces goldfmt.; id id; choro ounces / discrete coutline=black des='D0328U03-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0328U04 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0328U04 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GMAP FORMAT MAPS | | PROCS: GMAP FORMAT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global colors=(black blue green red) cback=white gunit=pct ftext=zapf htitle=6 htext=3 border; /* create the format GOLDFMT */ proc format; value goldfmt low-999999='Under 1 million' 1000000-9999999='1 to 10 million' 10000000-19999999='10 to 20 million'; /* define title and footnote */ title1 'Leading Gold Producers for 1988'; footnote1 justify=right 'D0328U04 '; /* define patterns */ pattern1 value=msolid color=green; pattern2 value=msolid color=blue; pattern3 value=msolid color=red; /* modify the legend */ legend1 label=('Troy Ounces' justify=left 'Produced') shape=bar(3,3) frame; /* produce a choropleth map */ proc gmap map=maps.worldprj data=sampsio.wrldgold all; format ounces goldfmt.; id id; choro ounces / discrete coutline=black legend=legend des='D0328U04-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0329U01 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0329U01 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GMAP MAPS | | PROCS: GMAP | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'Population Density of Australia'; footnote2 justify=right 'D0329U01 '; /* define patterns */ pattern1 value=msolid color=green; pattern2 value=msolid color=blue; pattern3 value=msolid color=red; /* produce a prism map */ proc gmap map=sampsio.ausmap(where=(density<=2)) data=sampsio.popdnsty; id id; prism popden / coutline=black des='D0329U01-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0329U02 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0329U02 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GMAP FORMAT MAPS | | PROCS: GMAP FORMAT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* create the format POPFMT */ proc format; value popfmt low-4='Fewer than 5' 5-20='5 to 20' 20-high='More than 20'; /* define title and footnote */ title1 'Population Density of Australia'; footnote1 justify=right 'D0329U02 '; /* define patterns */ pattern1 value=msolid color=green; pattern2 value=msolid color=blue; pattern3 value=msolid color=red; /* produce a prism map */ proc gmap map=sampsio.ausmap(where=(density<=2)) data=sampsio.popdnsty; format popden popfmt.; id id; prism popden / discrete coutline=black des='D0329U02-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0329U03 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0329U03 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GMAP FORMAT MAPS | | PROCS: GMAP FORMAT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* create the format POPFMT */ proc format; value popfmt low-4='Fewer than 5' 5-19='5 to 19' 20-high='More than 20'; /* define title and footnote */ title1 'Population Density of Australia'; footnote1 justify=right 'D0329U03 '; /* define patterns */ pattern1 value=msolid color=green; pattern2 value=msolid color=blue; pattern3 value=msolid color=red; /* produce a prism map */ proc gmap map=sampsio.ausmap(where=(density<=2)) data=sampsio.popdnsty; format popden popfmt.; id id; prism popden / xview=-5 discrete coutline=black des='D0329U03-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0329U04 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0329U04 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GMAP FORMAT MAPS | | PROCS: GMAP FORMAT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* create the format POPFMT */ proc format; value popfmt low-4='Fewer than 5' 5-19='5 to 19' 20-high='More than 20'; /* define title and footnote */ title1 'Population Density of Australia'; footnote1 justify=right 'D0329U04 '; /* define patterns */ pattern1 value=msolid color=green; pattern2 value=msolid color=blue; pattern3 value=msolid color=red; /* modify the legend */ legend1 shape=bar(3,3) label=('People Per' justify=left 'Square Mile') frame; /* produce a prism map */ proc gmap map=sampsio.ausmap(where=(density<=2)) data=sampsio.popdnsty; format popden popfmt.; id id; prism popden / legend=legend1 xview=-5 discrete coutline=black des='D0329U04-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0330U01 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0330U01 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GMAP MAPS | | PROCS: GMAP | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'Distribution of Hazardous Waste Sites in the U. S.'; footnote2 justify=right 'D0330U01 '; /* produce a surface map */ proc gmap map=maps.us data=sampsio.allsites; id state; surface sites / des='D0330U01-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0330U02 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0330U02 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GMAP MAPS | | PROCS: GMAP | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'Distribution of Hazardous Waste Sites in the U. S.'; footnote1 justify=right 'D0330U02 '; /* produce a surface map */ proc gmap map=maps.us data=sampsio.allsites; id state; surface sites / cbody=green constant=4 nlines=75 des='D0330U02-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0330U03 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0330U03 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GMAP MAPS | | PROCS: GMAP | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'Distribution of Hazardous Waste Sites in the U. S.'; footnote1 justify=right 'D0330U03 '; /* produce a surface map */ proc gmap map=maps.us data=sampsio.allsites; id state; surface sites / rotate=150 cbody=green constant=4 nlines=75 des='D0330U03-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0330U04 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0330U04 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GMAP MAPS | | PROCS: GMAP | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'Distribution of Hazardous Waste Sites in the U. S.'; footnote1 justify=right 'D0330U04 '; /* produce a surface map */ proc gmap map=maps.us data=sampsio.allsites; id state; surface sites / tilt=40 cbody=green constant=4 nlines=75 des='D0330U04-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0331U01 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0331U01 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GMAP MAPS | | PROCS: GMAP | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'Number of Hazardous Waste Sites, By State'; footnote1 justify=right 'D0331U01 '; /* define pattern for the map areas */ pattern1 value=msolid color=green; /* produce a block map */ proc gmap map=maps.us data=sampsio.rgnsites; id state; block sites / coutline=black des='D0331U01-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0331U02 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0331U02 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GMAP MAPS | | PROCS: GMAP | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'Number of Hazardous Waste Sites, By State'; footnote1 justify=right 'D0331U02 '; /* define pattern for the map areas */ pattern1 value=mempty color=black; /* define patterns for the blocks */ pattern2 value=solid color=green; pattern3 value=solid color=lib; pattern4 value=solid color=blue; pattern5 value=solid color=red; pattern6 value=solid color=black; /* produce a block map */ proc gmap map=maps.us data=sampsio.rgnsites; id state; block sites / des='D0331U02-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0331U03 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0331U03 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GMAP MAPS | | PROCS: GMAP | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'Number of Hazardous Waste Sites, By State'; footnote1 justify=right 'D0331U03 '; /* define pattern for the map areas */ pattern1 value=mempty color=black; /* define patterns for the blocks */ pattern2 value=empty color=black; pattern3 value=solid color=green; pattern4 value=solid color=lib; pattern5 value=solid color=blue; pattern6 value=solid color=red; pattern7 value=solid color=black; /* produce a block map */ proc gmap map=maps.us data=sampsio.rgnsites; id state; block sites / missing des='D0331U03-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0331U04 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0331U04 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GMAP MAPS | | PROCS: GMAP | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'Number of Hazardous Waste Sites, By State'; footnote1 justify=right 'D0331U04 '; /* define pattern for the map areas */ pattern1 value=mempty color=black; /* define patterns for the blocks */ pattern2 value=empty color=black; pattern3 value=solid color=green; pattern4 value=solid color=lib; pattern5 value=solid color=blue; pattern6 value=solid color=red; pattern7 value=solid color=black; /* produce a block map */ proc gmap map=maps.us data=sampsio.rgnsites; id state; block sites / blocksize=1.5 missing des='D0331U04-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0331U05 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0331U05 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GMAP MAPS | | PROCS: GMAP | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'Number of Hazardous Waste Sites, By State'; footnote1 justify=right 'D0331U05 '; /* define pattern for the map areas */ pattern1 value=mempty color=black; /* define patterns for the blocks */ pattern2 value=empty color=black; pattern3 value=solid color=green; pattern4 value=solid color=lib; pattern5 value=solid color=blue; pattern6 value=solid color=red; /* produce a block map */ proc gmap map=maps.us data=sampsio.rgnsites; id state; block sites / levels=4 blocksize=1.5 missing des='D0331U05-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0331U06 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0331U06 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GMAP MAPS | | PROCS: GMAP | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /*NOTE: THIS EXAMPLE MUST BE RUN IN 6.07 OR HIGHER */ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'Number of Hazardous Waste Sites, By State'; footnote1 justify=right 'D0331U06 '; /* define pattern for the map areas */ pattern1 value=mempty color=black; /* define patterns for the blocks */ pattern2 value=empty color=black; pattern3 value=solid color=green; pattern4 value=solid color=lib; pattern5 value=solid color=blue; pattern6 value=solid color=red; pattern7 value=solid color=black; /* produce a block map */ proc gmap map=maps.us data=sampsio.rgnsites; id state; block sites / midpoints=.,10.5 to 90.5 by 20 blocksize=1.5 des='D0331U06-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0331U07 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0331U07 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GMAP MAPS | | PROCS: GMAP | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /*NOTE: THIS EXAMPLE MUST BE RUN IN 6.07 OR HIGHER */ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'Number of Hazardous Waste Sites, By State'; footnote1 justify=right 'D0331U07 '; /* define pattern for map areas */ pattern1 value=mempty color=black; /* define patterns for the blocks */ pattern2 value=empty color=black; pattern3 value=solid color=green; pattern4 value=solid color=cyan; pattern5 value=solid color=blue; pattern6 value=solid color=red; pattern7 value=solid color=black; /* define legend characteristics */ legend1 shape=bar(3,3) label=(position=middle 'Number' justify=left 'of Sites') value=('Missing' '1-20' '21-40' '41-60' '61-80' 'Over 80'); /* produce a block map */ proc gmap map=maps.us data=sampsio.rgnsites; id state; block sites / legend=legend1 blocksize=1.5 midpoints=.,10.5 to 90.5 by 20 des='D0331U07-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0331U08 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0331U08 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GMAP SORT MAPS | | PROCS: GMAP SORT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /*NOTE: THIS EXAMPLE MUST BE RUN IN 6.07 OR HIGHER */ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* sort the map data set EASTRGN */ proc sort data=sampsio.eastrgn out=eastrgn2; by region state; run; /* sort the response data set RGNSITES */ proc sort data=sampsio.rgnsites out=rgnsite2; by region state; run; /* define title and footnote */ title1 'Number of Hazardous Waste Sites, By State'; footnote1 justify=right 'D0331U08 '; /* define patterns for the map areas */ pattern1 value=msolid color=lig; pattern2 value=msolid color=green; pattern3 value=msolid color=lib; pattern4 value=msolid color=blue; /* define patterns for the blocks */ pattern5 value=empty color=black; pattern6 value=r3 color=black; pattern7 value=r5 color=black; pattern8 value=x3 color=black; pattern9 value=x5 color=black; pattern10 value=solid color=black; /* define legend characteristics */ legend1 shape=bar(3,3) label=(position=middle 'Number' justify=left 'of Sites') value=('Missing' '1-20' '21-40' '41-60' '61-80' 'Over 80'); /* produce a block map */ proc gmap map=eastrgn2 data=rgnsite2; id region state; block sites / area=1 coutline=black legend=legend1 blocksize=1.5 midpoints=.,10.5 to 90.5 by 20 des='D0331U08-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0331U09 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0331U09 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GMAP MAPS | | PROCS: GMAP | | DATA: EXTERNAL AND USES THE SORTED DATA SETS CREATED | | IN SAMPLE PROGRAM D0331U08 | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /*NOTE: THIS EXAMPLE MUST BE RUN IN 6.07 OR HIGHER */ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'Number of Hazardous Waste Sites, By State'; footnote1 justify=right 'D0331U09 '; /* define patterns for the map areas */ pattern1 value=msolid color=lig; pattern2 value=msolid color=green; pattern3 value=msolid color=lib; pattern4 value=msolid color=blue; /* define patterns for the blocks */ pattern5 value=empty color=black; pattern6 value=r3 color=black; pattern7 value=l3 color=black; pattern8 value=x3 color=black; pattern9 value=x5 color=black; pattern10 value=solid color=black; /* define legend characteristics */ legend1 shape=bar(3,3) label=(position=middle 'Number' justify=left 'of Sites') value=('Missing' '1-20' '21-40' '41-60' '61-80' 'Over 80'); /* produce a block map */ proc gmap map=sampsio.eastrgn data=sampsio.rgnsites; id region state; block sites / xview=1 yview=0 zview=1.5 area=1 coutline=black legend=legend1 blocksize=1.5 midpoints=.,10.5 to 90.5 by 20 des='D0331U09-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0332U01 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0332U01 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GMAP MAPS | | PROCS: GMAP | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'US Environmental Protection Agency Regions'; footnote1 justify=right 'D0332U01 '; /* define map patterns */ pattern1 value=m1n0 color=black; pattern2 value=m1n90 color=blue; pattern3 value=m1n45 color=red; pattern4 value=m1x45 color=green; pattern5 value=m3n0 color=black; pattern6 value=m3n90 color=blue; pattern7 value=m3n45 color=red; pattern8 value=m3x45 color=green; pattern9 value=m5n0 color=black; pattern10 value=m5n90 color=blue; /* display the regional map */ proc gmap map=sampsio.rgnmap data=sampsio.rgnmap; id region; choro region / discrete coutline=black des='D0332U01-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0332U02 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0332U02 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GMAP FORMAT MAPS | | PROCS: GMAP FORMAT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* create the format TOTFMT */ proc format; value totfmt low-49='Fewer than 50' 50-99='50-99' 100-149='100-149' 150-199='150-199' 200-high='200 or more'; /* define title and footnote */ title1 'Number of Hazardous Waste Sites, By Region'; footnote1 justify=right 'D0332U02 '; /* define patterns */ pattern1 value=msolid color=green; pattern2 value=msolid color=lig; pattern3 value=msolid color=lib; pattern4 value=msolid color=blue; pattern5 value=msolid color=red; /* define legend characteristics */ legend1 shape=bar(3,3) label=(position=middle 'Number' justify=left 'of Sites'); /* produce a regional prism map of SITETOT */ proc gmap map=sampsio.rgnmap data=sampsio.sitetot; format rgntot totfmt.; id region; prism rgntot / discrete coutline=black legend=legend1 des='D0332U02-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0335U01 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0335U01 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS G3D | | PROCS: G3D | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define titles and footnotes for graph */ title1 'Iris Species Classification'; title2 'Physical Measurement'; title3 'Source: Fisher (1936) Iris Data'; footnote1 justify=left 'Petallen: petal length in mm.' move=(70,+0) 'Petalwid: petal width in mm.'; footnote2 justify=left 'Sepallen: sepal length in mm.' move=(70,+0) 'Sepal width not shown.'; footnote3 justify=right 'D0335U01 '; /* produce the scatter plot */ proc g3d data=sampsio.iris; scatter petallen*petalwid=sepallen / des='D0335U01-1'; run; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0335U02 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0335U02 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS G3D | | PROCS: G3D | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define titles and footnotes for graph */ title1 'Iris Species Classification'; title2 'Physical Measurement'; title3 'Source: Fisher (1936) Iris Data'; footnote1 justify=left 'Petallen: petal length in mm.' move=(70,+0) 'Petalwid: petal width in mm.'; footnote2 justify=left 'Sepallen: sepal length in mm.' move=(70,+0) 'Sepal width not shown.'; footnote3 justify=right 'D0335U02 '; /* produce the scatter plot */ proc g3d data=sampsio.iris; scatter petallen*petalwid=sepallen / shape='spade' color='green' des='D0335U02-1'; run; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0335U03 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0335U03 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS G3D | | PROCS: G3D | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define titles and footnotes for graph */ title1 'Iris Species Classification'; title2 'Physical Measurement'; title3 'Source: Fisher (1936) Iris Data'; footnote1 justify=left 'Petallen: petal length in mm.' move=(70,+0) 'Petalwid: petal width in mm.'; footnote2 justify=left 'Sepallen: sepal length in mm.' move=(70,+0) 'Sepal width not shown.'; footnote3 justify=right 'D0335U03 '; /* produce the scatter plot */ proc g3d data=sampsio.iris2; scatter petallen*petalwid=sepallen / shape=shapeval color=colorval des='D0335U03-1'; run; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0335U04 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0335U04 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS G3D | | PROCS: G3D | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define titles and footnotes for graph */ title1 'Iris Species Classification'; title2 'Physical Measurement'; title3 'Source: Fisher (1936) Iris Data'; footnote1 justify=left 'Petallen: petal length in mm.' move=(70,+0) 'Petalwid: petal width in mm.'; footnote2 justify=left 'Sepallen: sepal length in mm.' move=(70,+0) 'Sepal width not shown.'; footnote3 justify=right 'D0335U04 '; /* produce the scatter plot */ proc g3d data=sampsio.iris2; scatter petallen*petalwid=sepallen / shape=shapeval color=colorval des='D0335U04-1'; note move=(75,80) 'Species: ' c=green f=markere 'O' f=zapf 'Virginica' move=(85,-5) c=red f=markere 'P' f=zapf 'Versicolor' move=(85,-5) c=blue f=markere 'M' f=zapf 'Setosa'; run; /*+------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0335U05 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0335U05 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS G3D | | PROCS: G3D | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define titles and footnotes for graph */ title1 'Iris Species Classification'; title2 'Physical Measurement'; title3 'Source: Fisher (1936) Iris Data'; footnote1 justify=left 'Petallen: petal length in mm.' move=(70,+0) 'Petalwid: petal width in mm.'; footnote2 justify=left 'Sepallen: sepal length in mm.' move=(70,+0) 'Sepal width not shown.'; footnote3 justify=right 'D0335U05 '; /* produce the scatter plot */ proc g3d data=sampsio.iris2; scatter petallen*petalwid=sepallen / shape=shapeval color=colorval grid caxis=black des='D0335U05-1'; note move=(75,80) 'Species: ' c=green f=markere 'O' f=zapf 'Virginica' move=(85,-5) c=red f=markere 'P' f=zapf 'Versicolor' move=(85,-5) c=blue f=markere 'M' f=zapf 'Setosa'; run; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0335U06 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0335U06 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS G3D | | PROCS: G3D | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define titles and footnotes for graph */ title1 'Iris Species Classification'; title2 'Physical Measurement'; title3 'Source: Fisher (1936) Iris Data'; footnote1 justify=left '*Values are in millimeters.' justify=right 'D0335U06 '; /* produce the scatter plot */ proc g3d data=sampsio.iris2; scatter petallen*petalwid=sepallen / shape=shapeval color=colorval grid caxis=black ctext=black des='D0335U06-1'; note move=(75,80) 'Species: ' c=green f=markere 'O' f=zapf 'Virginica' move=(85,-5) c=red f=markere 'P' f=zapf 'Versicolor' move=(85,-5) c=blue f=markere 'M' f=zapf 'Setosa'; label petallen='Petal Length*' petalwid='Petal Width*' sepallen='Sepal Length*'; run; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0335U07 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0335U07 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS G3D | | PROCS: G3D | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define titles and footnotes for graph */ title1 'Iris Species Classification'; title2 'Physical Measurement'; title3 'Source: Fisher (1936) Iris Data'; footnote1 justify=left '*Values are in millimeters.' justify=right 'D0335U07 '; /* produce the scatter plot */ proc g3d data=sampsio.iris2; scatter petallen*petalwid=sepallen / shape=shapeval color=colorval grid caxis=black ctext=black xticknum=6 yticknum=6 zticknum=6 des='D0335U07-1'; note move=(75,80) 'Species: ' c=green f=markere 'O' f=zapf 'Virginica' move=(85,-5) c=red f=markere 'P' f=zapf 'Versicolor' move=(85,-5) c=blue f=markere 'M' f=zapf 'Setosa'; label petallen='Petal Length*' petalwid=' Petal Width*' sepallen='Sepal Length*'; run; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0335U08 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0335U08 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS G3D | | PROCS: G3D | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define titles and footnotes for graph */ title1 'Iris Species Classification'; title2 'Physical Measurement'; title3 'Source: Fisher (1936) Iris Data'; footnote1 justify=left '*Values are in millimeters.' justify=right 'D0335U08 '; /* produce the scatter plot */ proc g3d data=sampsio.iris2; scatter petallen*petalwid=sepallen / shape=shapeval color=colorval grid caxis=black ctext=black xticknum=6 yticknum=6 zticknum=6 noneedle des='D0335U08-1'; note move=(75,80) 'Species: ' c=green f=markere 'O' f=zapf 'Virginica' move=(85,-5) c=red f=markere 'P' f=zapf 'Versicolor' move=(85,-5) c=blue f=markere 'M' f=zapf 'Setosa'; label petallen='Petal Length*' petalwid=' Petal Width*' sepallen='Sepal Length*'; run; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0336U01 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0336U01 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS G3D | | PROCS: G3D | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'Clay Content at Site A'; footnote1 justify=right 'D0336U01 '; /* produce the surface plot */ proc g3d data=sampsio.clay; plot y*x=pct_clay / des='D0336U01-1'; run; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0336U02 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0336U02 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS G3D | | PROCS: G3D | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'Clay Content at Site A'; footnote1 justify=right 'D0336U02 '; /* produce the surface plot */ proc g3d data=sampsio.clay2; plot y*x=pct_clay / des='D0336U02-1'; run; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0336U03 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0336U03 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS G3D | | PROCS: G3D | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'Clay Content at Site A'; footnote1 justify=right 'D0336U03 '; /* produce the surface plot */ proc g3d data=sampsio.clay2; plot y*x=pct_clay / grid caxis=black ctext=black des='D0336U03-1'; run; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0336U04 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0336U04 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS G3D | | PROCS: G3D | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'Clay Content at Site A'; footnote1 justify=right 'D0336U04 '; /* produce the surface plot */ proc g3d data=sampsio.clay2; plot y*x=pct_clay / grid caxis=black ctext=black des='D0336U04-1'; label pct_clay='Percent Clay'; run; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0336U05 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0336U05 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS G3D | | PROCS: G3D | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'Clay Content at Site A'; footnote1 justify=right 'D0336U05 '; /* produce the surface plot */ proc g3d data=sampsio.clay2; plot y*x=pct_clay / grid caxis=black ctext=black xticknum=5 yticknum=5 zticknum=6 des='D0336U05-1'; label pct_clay='Percent Clay'; run; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0336U06 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0336U06 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS G3D | | PROCS: G3D | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'Clay Content at Site A'; footnote1 justify=right 'D0336U06 '; /* produce the surface plot */ proc g3d data=sampsio.clay2; plot y*x=pct_clay / grid caxis=black ctext=black xticknum=5 yticknum=5 zticknum=6 zmin=-10 zmax=90 des='D0336U06-1'; label pct_clay='Percent Clay'; run; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0336U07 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0336U07 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS G3D | | PROCS: G3D | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'Clay Content at Site A'; footnote1 justify=right 'D0336U07 '; /* produce the surface plot */ proc g3d data=sampsio.clay2; plot y*x=pct_clay / grid caxis=black ctext=black xticknum=5 yticknum=5 zticknum=6 zmin=-10 zmax=90 ctop=blue des='D0336U07-1'; label pct_clay='Percent Clay'; run; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0336U08 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0336U08 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS G3D | | PROCS: G3D | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'Clay Content at Site A'; footnote1 justify=right 'D0336U08 '; /* produce the surface plot */ proc g3d data=sampsio.clay2; plot y*x=pct_clay / grid caxis=black ctext=black xticknum=5 yticknum=5 zticknum=6 zmin=-10 zmax=90 ctop=blue xytype=1 des='D0336U08-1'; label pct_clay='Percent Clay'; run; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0336U09 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0336U09 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS G3D | | PROCS: G3D | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'Clay Content at Site A'; footnote1 justify=right 'D0336U09 '; /* produce the surface plot */ proc g3d data=sampsio.clay2; plot y*x=pct_clay / grid caxis=black ctext=black xticknum=5 yticknum=5 zticknum=6 zmin=-10 zmax=90 ctop=blue xytype=1 rotate=35 des='D0336U09-1'; label pct_clay='Percent Clay'; run; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0336U10 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0336U10 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS G3D | | PROCS: G3D | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'Clay Content at Site A'; footnote1 justify=right 'D0336U10 '; /* produce the surface plot */ proc g3d data=sampsio.clay2; plot y*x=pct_clay / grid caxis=black ctext=black xticknum=5 yticknum=5 zticknum=6 zmin=-10 zmax=90 ctop=blue xytype=1 rotate=35 tilt=85 des='D0336U10-1'; label pct_clay='Percent Clay'; run; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0337U01 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0337U01 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GCONTOUR | | PROCS: GCONTOUR | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define titles and footnotes */ title1 'Clay Content at Site A'; footnote1 justify=right 'D0337U01 '; /* produce the contour plot */ proc gcontour data=sampsio.clay2; plot y*x=pct_clay / des='D0337U01-1'; run; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0337U02 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0337U02 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GCONTOUR | | PROCS: GCONTOUR | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define titles and footnotes */ title1 'Clay Content at Site A'; footnote1 justify=right 'D0337U02 '; /* produce the contour plot */ proc gcontour data=sampsio.clay2; plot y*x=pct_clay / levels=0, 10 to 90 by 20 des='D0337U02-1'; run; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0337U03 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0337U03 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GCONTOUR | | PROCS: GCONTOUR | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* limit the colors to BLACK for this example */ goptions colors=(black); /* define titles and footnotes */ title1 'Clay Content at Site A'; footnote1 justify=right 'D0337U03 '; /* produce the contour plot */ proc gcontour data=sampsio.clay2; plot y*x=pct_clay / levels=0, 10 to 90 by 20 llevels=20 33 2 8 1 41 clevels=black black black black black black des='D0337U03-1'; run; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0337U04 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0337U04 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GCONTOUR | | PROCS: GCONTOUR | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define titles and footnotes */ title1 'Clay Content at Site A'; footnote1 justify=right 'D0337U04 '; /* produce the contour plot */ proc gcontour data=sampsio.clay2; plot y*x=pct_clay / levels=0, 10 to 90 by 20 llevels=1 1 1 1 1 1 clevels=black blue green red gray lib des='D0337U04-1'; run; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0337U05 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0337U05 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GCONTOUR | | PROCS: GCONTOUR | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define titles and footnotes */ title1 'Clay Content at Site A'; footnote1 justify=right 'D0337U05 '; /* produce the contour plot */ proc gcontour data=sampsio.clay2; plot y*x=pct_clay / levels=0, 10 to 90 by 20 llevels=1 1 1 1 1 1 clevels=black blue green red gray lib href=-10 to 10 by 5 vref=-10 to 10 by 5 des='D0337U05-1'; run; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0337U06 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0337U06 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GCONTOUR | | PROCS: GCONTOUR | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define titles and footnotes */ title1 'Clay Content at Site A'; footnote1 justify=right 'D0337U06 '; /* produce the contour plot */ proc gcontour data=sampsio.clay2; plot y*x=pct_clay / levels=0, 10 to 90 by 20 llevels=1 1 1 1 1 1 clevels=black blue green red gray lib href=-10 to 10 by 5 vref=-10 to 10 by 5 lvref=2 cvref=blue lhref=2 chref=blue des='D0337U06-1'; run; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0337U07 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0337U07 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GCONTOUR | | PROCS: GCONTOUR | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define titles and footnotes */ title1 'Clay Content at Site A'; footnote1 justify=right 'D0337U07 '; /* define the appearance of the axes */ axis1 order=(10 to -10 by -5); /* produce the contour plot */ proc gcontour data=sampsio.clay2; plot x*y=pct_clay / levels=0, 10 to 90 by 20 llevels=1 1 1 1 1 1 clevels=black blue green red gray lib href=-10 to 10 by 5 vref=-10 to 10 by 5 lvref=2 cvref=blue lhref=2 chref=blue haxis=axis1 des='D0337U07-1'; run; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0337U08 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0337U08 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GCONTOUR | | PROCS: GCONTOUR | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define titles and footnotes */ title1 'Clay Content at Site A'; footnote1 justify=right 'D0337U08 '; /* define the appearance of the axes */ axis1 order=(10 to -10 by -5) length=40 pct; axis2 minor=(number=5); /* produce the contour plot */ proc gcontour data=sampsio.clay2; plot x*y=pct_clay / levels=0, 10 to 90 by 20 llevels=1 1 1 1 1 1 clevels=black blue green red gray lib href=-10 to 10 by 5 vref=-10 to 10 by 5 lvref=2 cvref=blue lhref=2 chref=blue haxis=axis1 vaxis=axis2 des='D0337U08-1'; run; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0337U09 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0337U09 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GCONTOUR | | PROCS: GCONTOUR | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define titles and footnotes */ title1 'Clay Content at Site A'; footnote1 justify=right 'D0337U09 '; /* define the appearance of the axes */ axis1 order=(10 to -10 by -5) length=40 pct; axis2 minor=(number=5) order=(-10 -5); /* produce the contour plot */ proc gcontour data=sampsio.clay2; plot x*y=pct_clay / levels=0, 10 to 90 by 20 llevels=1 1 1 1 1 1 clevels=black blue green red gray lib haxis=axis1 vaxis=axis2 des='D0337U09-1'; run; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0337U10 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0337U10 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GCONTOUR | | PROCS: GCONTOUR | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define titles and footnotes */ title1 'Clay Content at Site A'; footnote1 justify=right 'D0337U10 '; /* define the appearance of the axes */ axis1 order=(10 to -10 by -5) length=40 pct; axis2 minor=(number=5); /* define the appearance of the legend */ legend1 label=(position=(middle left) 'Percentage ' justify=left ' of Clay') across=3; /* produce the contour plot */ proc gcontour data=sampsio.clay2; plot x*y=pct_clay / levels=0, 10 to 90 by 20 llevels=1 1 1 1 1 1 clevels=black blue green red gray lib href=-10 to 10 by 5 vref=-10 to 10 by 5 lvref=2 cvref=blue lhref=2 chref=blue haxis=axis1 vaxis=axis2 legend=legend1 des='D0337U10-1'; run; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0337U11 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0337U11 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GCONTOUR | | PROCS: GCONTOUR | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define titles and footnotes */ title1 'Clay Content at Site A'; footnote1 justify=right 'D0337U11 '; /* define the appearance of the axes */ axis1 order=(10 to -10 by -5) length=40 pct; axis2 minor=(number=5); /* define the appearance of the legend */ legend1 label=(position=(middle left) 'Percentage ' justify=left ' of Clay') across=3; /* define the fill pattern and colors*/ pattern1 value=msolid color=blue; pattern2 value=msolid color=green; pattern3 value=msolid color=red; pattern4 value=msolid color=gray; pattern5 value=msolid color=lib; pattern6 value=msolid color=lig; /* produce the contour plot */ proc gcontour data=sampsio.clay2; plot x*y=pct_clay / levels=0, 10 to 90 by 20 haxis=axis1 vaxis=axis2 legend=legend pattern des='D0337U11-1'; run; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0337U12 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0337U12 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GCONTOUR | | PROCS: GCONTOUR | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define titles and footnotes */ title1 'Clay Content at Site A'; footnote1 justify=right 'D0337U12 '; /* define the appearance of the axes */ axis1 order=(10 to -10 by -5) length=40 pct; axis2 minor=(number=5); /* define the appearance of the legend */ legend1 label=(position=(middle left) 'Percentage ' justify=left ' of Clay') across=3; /* define the fill pattern and colors*/ pattern1 value=msolid color=blue; pattern2 value=msolid color=green; pattern3 value=msolid color=red; pattern4 value=msolid color=black; pattern5 value=msolid color=lib; pattern6 value=msolid color=lig; /* produce the contour plot */ proc gcontour data=sampsio.clay2; plot x*y=pct_clay / levels=0, 10 to 90 by 20 haxis=axis1 vaxis=axis2 legend=legend pattern join coutline=black des='D0337U12-1'; run; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0340U01 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0340U01 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GSLIDE | | PROCS: GSLIDE | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=4 ftext=zapf border; /* define titles and footnotes */ title1 'Contracts Awarded to Stat Tech'; footnote1 move=(40,20) box=1 bspace=2 height=4 'Grand Total: 3230'; footnote2 height=3 justify=right 'D0340U01 '; /* produce the text slide */ proc gslide des='D0340U01-1'; note move=(10,65) underlin=1 'Site' move=(28,68) '1' move=(+0,+1) height=3 'st' move=(+1,-1) height=4 'Qtr' move=(43,68) '2' move=(+0,+1) height=3 'nd' move=(+1,-1) height=4 'Qtr' move=(58,68) '3' move=(+0,+1) height=3 'rd' move=(+1,-1) height=4 'Qtr' move=(73,68) '4' move=(+0,+1) height=3 'th' move=(+1,-1) height=4 'Qtr'; note draw=(25,65,85,65) draw=(10,50,85,50) draw=(10,35,85,35); note draw=(25,65,25,35) draw=(40,65,40,35) draw=(55,65,55,35) draw=(70,65,70,35) draw=(85,65,85,35); note move=(10,55) 'Site A' move=(30,+0) '265' move=(45,+0) '124' move=(60,+0) '354' move=(75,+0) '642'; note move=(10,40) 'Site B' move=(30,+0) '426' move=(45,+0) '632' move=(60,+0) '226' move=(75,+0) '561'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0341U01 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0341U01 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GFONT | | PROCS: GFONT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* assign the GFONT0 libref */ /* libname gfont0 'your-SAS-data-library'; */ /* define the footnote */ footnote justify=right 'D0341U01 '; /* fun the GFONT procedure */ proc gfont data=sampsio.logo name=st filled height=35 pct ctext=black; run; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0341U02 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0341U02 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GSLIDE | | PROCS: GSLIDE | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* assign the GFONT0 libref */ /* libname gfont0 'your-SAS-data-library'; */ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=4 ftext=zapf border; /* define titles and footnotes */ title1 'Contracts Awarded to Stat Tech'; footnote1 move=(40,20) box=1 bspace=2 height=4 'Grand Total: 3230'; footnote2 height=10 justify=left font=st ' a' height=3 justify=right font=zapf 'D0341U02 '; /* produce the text slide */ proc gslide des='D0341U02-1'; note move=(10,65) underlin=1 'Site' move=(28,68) '1' move=(+0,+1) height=3 'st' move=(+1,-1) height=4 'Qtr' move=(43,68) '2' move=(+0,+1) height=3 'nd' move=(+1,-1) height=4 'Qtr' move=(58,68) '3' move=(+0,+1) height=3 'rd' move=(+1,-1) height=4 'Qtr' move=(73,68) '4' move=(+0,+1) height=3 'th' move=(+1,-1) height=4 'Qtr'; note draw=(25,65,85,65) draw=(10,50,85,50) draw=(10,35,85,35); note draw=(25,65,25,35) draw=(40,65,40,35) draw=(55,65,55,35) draw=(70,65,70,35) draw=(85,65,85,35); note move=(10,55) 'Site A' move=(30,+0) '265' move=(45,+0) '124' move=(60,+0) '354' move=(75,+0) '642'; note move=(10,40) 'Site B' move=(30,+0) '426' move=(45,+0) '632' move=(60,+0) '226' move=(75,+0) '561'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0344U01 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0344U01 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GSLIDE | | PROCS: GSLIDE | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* create the first slide */ title1 height=10; title2 height=10 'Summary of Energy Production'; title3 height=6 '1986 - 1988'; footnote1 justify=right 'Executive Briefing, First Quarter, 1989'; footnote2 justify=right 'D0344U01 '; proc gslide gout=newcat des='D0344U01-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0344U02 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0344U02 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GCHART | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| | THE LIBREF, MYLIB, MUST BE ASSIGNED IN ORDER TO | | CREATE THE PERMANENT GRAPH CATALOG, MYLIB.PERMCAT. | +-------------------------------------------------------------+*/ /* allocate libref to SAS data library */ /*libname mylib 'your-SAS-data-library';*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnotes */ title1 'Amount of Energy Produced'; footnote1 justify=right 'Executive Briefing, First Quarter, 1989'; footnote2 justify=right 'D0344U02 '; /* define the appearance of the axes */ axis1 label=('Type of Energy' j=l 'Produced'); axis2 length=43.1; pattern1 value=solid color=green; proc gchart data=sampsio.enprod gout=mylib.permcat; hbar engytype / sumvar=prod type=sum sum raxis=axis2 maxis=axis1 des='D0344U02-1'; by year; where year in(1986 1987 1988); run; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0344U03 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0344U03 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GSLIDE | | PROCS: GSLIDE | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* create the second slide */ title1 height=6; title2 height=10 'Goals for 1990:'; footnote1 justify=right 'Executive Briefing, First Quarter, 1989'; footnote2 justify=right 'D0344U03 '; proc gslide gout=newcat des='D0344U03-1'; note move=(15,65) pct height=9 f=special ' J' font=zapf height=6 ' Increase efficiency in production' move=(20,59) pct 'and consumption' move=(15,44) pct height=9 font=special ' J' font=zapf height=6 ' Explore new reserves of fuels' move=(15,28) pct height=9 font=special ' J' font=zapf height=6 ' Develop alternative energy sources'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0344U04 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0344U04 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GSLIDE | | PROCS: GSLIDE | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* select the target device */ goptions targetdevice=qms800; /* define the titles and footnotes for the first slide */ title1 height=10; title2 height=10 'Summary of Energy Production'; title3 height=6 '1986 - 1988'; footnote1 justify=right 'Executive Briefing, First Quarter, 1989'; footnote2 justify=right 'D0344U04 '; proc gslide des='D0344U04-1'; run; quit; /* cancel TARGETDEVICE= */ goptions targetdevice=; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0346U01 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0346U01 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GREPLAY | | PROCS: GREPLAY | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 27AUG92 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| | THE LIBREF, MYLIB, MUST BE ASSIGNED IN ORDER TO | | CREATE THE PERMANENT GRAPH CATALOG, MYLIB.PERMCAT. | | RUN D0344U02 PRIOR TO RUNNING THIS SAMPLE. | +-------------------------------------------------------------+*/ /* assign the MYLIB libref */ /*libname mylib 'your-SAS-data-library';*/ proc greplay igout=work.newcat nofs; list igout; replay gslide gslide1; gout mylib.permcat; copy _all_; igout mylib.permcat; list igout; delete gchart; list igout; modify gchart1 / name='bar87' des='bar chart of 1987 energy figures' gchart2 / name='bar88' des='bar chart of 1988 energy figures' gslide / name='cover' des='cover slide for 1989 1st qtr briefing' gslide1 / name='summary' des='summary for 1989 1st qtr briefing'; list igout; move cover before bar87; list igout; group cover bar87 bar88 summary; list igout; modify group / name='pres89' des='executive briefing, 1st qtr, 1989'; list igout; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0347U01 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0347U01 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GCHART | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define titles and footnote */ title1 'Australian, Canadian, and U.S. Grain Production'; title2 height=4 '1986 and 1987'; footnote1 justify=right 'D0347U01 '; /* define appearance of axes */ axis1 label=('Type of Grain' justify=center 'Produced'); axis2 minor=(number=3) label=('Total Produced' justify=center '(in Tons)'); /* select pattern for all bars */ pattern1 value=solid color=green; /* produce the bar chart */ proc gchart data=sampsio.grains; hbar type / sumvar=amount type=sum maxis=axis1 raxis=axis2 sum des='D0347U01-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0347U02 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0347U02 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GCHART | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define titles and footnote */ title1 'Grain Production'; title2 height=4 '1986 and 1987'; footnote1 justify=right 'D0347U02 '; /* define appearance of axes */ axis1 label=('Type of Grain' justify=center 'Produced'); axis2 minor=(number=3) label=('Total Produced' justify=center '(in Tons)'); /* select pattern for all bars */ pattern1 value=solid color=green; /* produce a bar chart for each country */ proc gchart data=sampsio.grains2; hbar type / sumvar=amount type=sum maxis=axis1 raxis=axis2 sum des='D0347U02-1'; by country; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0347U03 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0347U03 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GOPTIONS GCHART | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* suppress the BY Line */ goptions hby=0; /* define titles and footnote */ title1 'Grain Production'; title2 height=4 '1986 and 1987'; footnote1 justify=right 'D0347U03 '; /* define appearance of axes */ axis1 label=('Type of Grain' justify=center 'Produced'); axis2 minor=(number=3) label=('Total Produced' justify=center '(in Tons)'); /* select pattern for all bars */ pattern1 value=solid color=green; /* produce bar chart for each country */ proc gchart data=sampsio.grains2; hbar type / sumvar=amount type=sum maxis=axis1 raxis=axis2 sum des='D0347U03-1'; by country; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0347U04 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0347U04 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC E SAMPSIO GRAPHICS GOPTIONS GCHART | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* modify the appearance of the BY Line */ goptions hby=4 cby=blue; /* define titles and footnote */ title1 'Grain Production'; title2 height=4 '1986 and 1987'; footnote1 justify=right 'D0347U04 '; /* define appearance of axes */ axis1 label=('Type of Grain' justify=center 'Produced'); axis2 minor=(number=3) label=('Total Produced' justify=center '(in Tons)'); /* select pattern for all bars */ pattern1 value=solid color=green; /* produce bar chart for each country */ proc gchart data=sampsio.grains2; hbar type / sumvar=amount type=sum maxis=axis1 raxis=axis2 sum des='D0347U04-1'; by country; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0347U05 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0347U05 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GOPTIONS GCHART | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* modify the appearance of the BY Line */ goptions hby=4 cby=blue; /* define titles and footnote */ title1 'Grain Production'; title2 height=4 '1986 and 1987'; footnote1 justify=right 'D0347U05 '; /* define appearance of axes */ axis1 label=('Type of Grain' justify=center 'Produced'); axis2 minor=(number=3) label=('Total Produced' justify=center '(in Tons)'); /* select pattern for all bars */ pattern1 value=solid color=green; /* produce bar chart for each country */ proc gchart data=sampsio.grains2; hbar type / sumvar=amount type=sum maxis=axis1 raxis=axis2 sum des='D0347U05-1'; by country; label country='00'x; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0347U06 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0347U06 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GCHART | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define titles and footnote */ title1 'Total Grain Production'; title2 height=4 '1987'; footnote1 justify=right 'D0347U06 '; /* define appearance of axes */ axis1 label=('Type of Grain' justify=center 'Produced'); axis2 minor=(number=3) label=('Total Produced' justify=center '(in Tons)'); /* select patter for all bars */ pattern1 value=solid color=green; proc gchart data=sampsio.grains; hbar type / sumvar=amount type=sum maxis=axis1 raxis=axis2 sum des='D0347U06-1'; where year=1987; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0347U07 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0347U07 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GCHART | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define titles and footnote */ title1 'Total Grain Production'; title2 height=4 'Australia, 1987'; footnote1 justify=right 'D0347U07 '; /* define appearance of axes */ axis1 label=('Type of Grain' justify=center 'Produced'); axis2 minor=(number=3) label=('Total Produced' justify=center '(in Tons)'); /* select pattern for all bars */ pattern1 value=solid color=green; /* produce bar chart */ proc gchart data=sampsio.grains; hbar type / sumvar=amount type=sum maxis=axis1 raxis=axis2 sum des='D0347U07-1'; where year=1987 and country='Australia'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0347U08 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0347U08 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GCHART | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define titles and footnote */ title1 'Grain Production'; title2 height=4 '1986'; footnote1 justify=right 'D0347U08(a) '; /* define appearance of axes */ axis1 label=('Type of Grain' justify=center 'Produced'); axis2 minor=(number=3) label=('Total Produced' justify=center '(in Tons)'); /* select pattern for all bars */ pattern1 value=solid color=green; /* produce bar chart */ proc gchart data=sampsio.grains; hbar type / sumvar=amount type=sum maxis=axis1 raxis=axis2 sum des='D0347U08-1'; where year=1986; run; /* change the footnote */ footnote1 justify=right 'D0347U08(b) '; /* produce a pie chart of the same data */ pie type / sumvar=amount type=sum des='D0347U08-2'; run; /* change the footnote */ footnote1 justify=right 'D0347U08(c) '; /* change the fill pattern for the pie */ pattern1 value=psolid color=blue; pattern2 value=psolid color=red; pattern3 value=psolid color=green; run; /* change the footnote */ footnote1 justify=right 'D0347U08(d) '; /* reset the WHERE condition */ where; /* cancel the TITLE2 statement */ title2; /* produce a separate chart for 1986 and 1987 */ by year; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0350U01 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0350U01 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GCHART | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the example */ goptions reset=global border ctext=black htitle=6 pct htext=3 pct ftext=zapf; /* select the title */ title1 'Ages of Participants in Wellness Program'; footnote1 justify=right 'D0350U01 '; /* modify the axes */ axis1 minor=none label=('Distribution of Ages'); axis2 label=('Age at Start' justify=center 'of Program') value=('20-29' '30-39' '40-49'); /* define the pattern */ pattern1 value=solid; /* produce the chart */ proc gchart data=sampsio.fitness; hbar age / raxis=axis1 maxis=axis2 percent patternid=midpoint midpoints=25 35 45 des='D0350U01-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0351U01 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0351U01 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GCHART | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define titles and footnote */ title1 'Corn, Rice, and Wheat Production'; title2 height=4 '1986-1987'; footnote1 justify=right 'D0351U01 '; /* specify patterns for the bars */ pattern1 value=solid color=blue; pattern2 value=solid color=green; pattern3 value=solid color=red; pattern4 value=solid color=yellow; pattern5 value=solid color=cyan; /* produce the chart */ proc gchart data=sampsio.grainprd; vbar country / group=type sumvar=amount patternid=midpoint space=.5 frame coutline=black des='D0351U01-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0351U02 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0351U02 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GCHART | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define titles and footnote */ title1 'Corn, Rice, and Wheat Production'; title2 height=4 '1986-1987'; footnote1 justify=right 'D0351U02 '; /* modify the midpoint axis */ axis1 label=none value=(angle=-70 tick=1 'Austral.'); /* modify the response axis */ axis2 label=(angle=-90 rotate=90 height=3.5 'Total Tons'); /* modify the group axis */ axis3 label=none value=(height=4 'Corn' 'Rice' 'Wheat'); /* specify patterns for the bars */ pattern1 value=solid color=blue; pattern2 value=solid color=green; pattern3 value=solid color=red; pattern4 value=solid color=yellow; pattern5 value=solid color=cyan; /* produce the chart */ proc gchart data=sampsio.grainprd; vbar country / group=type sumvar=amount patternid=midpoint space=.5 frame coutline=black maxis=axis1 raxis=axis2 gaxis=axis3 des='D0351U02-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0351U03 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0351U03 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GCHART | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'Corn, Rice, and Wheat Production, in Tons'; footnote1 justify=right 'D0351U03 '; /* define axis characteristics */ axis1 label=none; /* specify patterns for the bars */ pattern1 value=solid color=blue; pattern2 value=solid color=green; /* produce the chart */ proc gchart data=sampsio.grainprd; vbar year / discrete group=country sumvar=amount patternid=midpoint coutline=black maxis=axis1 gaxis=axis1 des='D0351U03-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0351U04 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0351U04 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GCHART | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set standard graphics options */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'Corn, Rice, and Wheat Production, in Tons'; footnote1 justify=right 'D0351U04 '; /* modify the midpoint axis */ axis1 label=none width=8; /* modify the group axis */ axis2 label=none value=(height=4); /* modify the response axis */ axis3 label=none value=none major=none minor=none style=0; /* specify patterns for the bars */ pattern1 value=solid color=blue; pattern2 value=solid color=green; /* produce the chart */ proc gchart data=sampsio.grainprd; vbar year / discrete group=country sumvar=amount sum patternid=midpoint space=0 width=6 coutline=black maxis=axis1 gaxis=axis2 raxis=axis3 des='D0351U04-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0351U05 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0351U05 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GPLOT | | PROCS: GPLOT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define titles and footnote */ title1 'Growth of Selected Energy Production Methods'; title2 height=4 'Coal, Gas, Oil, and Nuclear Energy'; footnote1 justify=right 'D0351U05 '; /* modify symbol characteristics */ symbol1 interpol=join value=dot; /* modify horizontal axes */ axis1 label=none order=(1965 to 1990 by 5) major=(height=1.5) minor=(number=4 height=1); /* produce the plot */ proc gplot data=sampsio.enprod2; where engytype in('coal' 'gas' 'oil' 'nuclear'); plot prod*year=engytype / frame haxis=axis1 des='D0351U05-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0351U06 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0351U06 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GPLOT | | PROCS: GPLOT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'Growth of Selected Energy Production Methods'; title2 height=4 'Coal, Gas, Oil, and Nuclear Energy'; footnote1 justify=right 'D0351U06 '; /* modify symbol characteristics */ symbol1 interpol=join value=dot; symbol2 interpol=none value=none; /* modify horizontal axis */ axis1 label=none order=(1965 to 1990 by 5) major=(height=1.5) minor=(number=4 height=1); /* define logarithmic axis */ axis2 logstyle=expand logbase=10 major=(height=1.5) minor=(number=8 height=1); axis3 logstyle=power logbase=10 major=(height=1.5) minor=(number=1 height=1); /* produce the plot */ proc gplot data=sampsio.enprod2; where engytype in('coal' 'gas' 'oil' 'nuclear'); plot prod*year=engytype / frame haxis=axis1 vaxis=axis2 des='D0351U06-1'; plot2 prod*year=5 / vaxis=axis3; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0352U01 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0352U01 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GPLOT | | PROCS: GPLOT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define titles and footnote */ title1 'US Energy Production and Consumption'; title2 height=4 '1955 - 1988'; footnote1 justify=right 'D0352U01 '; footnote2 angle=90 ' '; /* modify symbol characteristics for each plot */ symbol1 interpol=join value=diamond height=3 color=red width=2; symbol2 interpol=join value=star height=3 color=blue width=2; /* modify the horizontal axis */ axis1 order=(1955 to 1990 by 5) minor=none label=none offset=(2,0); /* modify vertical axis */ axis2 order=(35, 40 to 80 by 5) offset=(0,4) minor=none label=('Quadrillion' justify=right 'Btu.'); /* produce the plot with a legend */ proc gplot data=sampsio.energy3; plot btu*year=energy / cframe=lig haxis=axis1 vaxis=axis2 des='D0352U01-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0352U02 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0352U02 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GPLOT | | PROCS: GPLOT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define titles and footnote */ title1 'US Energy Production and Consumption'; title2 height=4 '1955 - 1988'; footnote1 justify=right 'D0352U02 '; footnote2 angle=90 ' '; /* modify symbol characteristics for each plot */ symbol1 interpol=join value=diamond height=3 color=red width=2; symbol2 interpol=join value=star height=3 color=blue width=2; /* modify the horizontal axis */ axis1 order=(1955 to 1990 by 5) minor=none label=none offset=(2,0); /* modify vertical axis */ axis2 order=(35, 40 to 80 by 5) offset=(0,4) minor=none label=('Quadrillion' justify=right 'Btu.'); /* adjust the legend */ legend1 label=none value=('Energy Consumed' 'Energy Produced') shape=symbol(6,3) across=1 frame position=(inside right) mode=protect offset=(-5,6); /* produce the plot with a legend */ proc gplot data=sampsio.energy3; plot btu*year=energy / cframe=lig haxis=axis1 vaxis=axis2 legend=legend1 des='D0352U02-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0353U01 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0353U01 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GCHART | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'Total Corn, Rice, and Wheat Production'; footnote1 justify=right 'D0353U01 '; /* modify the axes */ axis1 label=none value=(angle=-45 'Austral.'); axis2 label=('Total Tons' justify=right 'Produced'); axis3 label=none; /* select the patterns */ pattern1 value=solid color=blue; pattern2 value=solid color=green; pattern3 value=solid color=red; pattern4 value=solid color=lib; pattern5 value=solid color=lig; /* produce the bar chart */ proc gchart data=sampsio.grainprd; vbar country / group=year sumvar=amount patternid=midpoint space=.5 frame coutline=black maxis=axis1 raxis=axis2 gaxis=axis3 des='D0353U01-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0353U02 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0353U02 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GCHART | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'Total Corn, Rice, and Wheat Production'; footnote1 justify=right 'D0353U02 '; /* modify the axes */ axis1 label=none value=(angle=-45 'Austral.'); axis2 label=('Total Tons' justify=right 'Produced'); axis3 label=none; /* select the pattern */ pattern1 value=solid; /* produce the bar chart */ proc gchart data=sampsio.grainprd; vbar country / group=year sumvar=amount patternid=group space=.5 frame coutline=black maxis=axis1 raxis=axis2 gaxis=axis3 des='D0353U02-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0353U03 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0353U03 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GCHART | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'Total Corn, Rice, and Wheat Production'; footnote1 justify=right 'D0353U03 '; /* modify the axes */ axis1 label=none value=(angle=-45 'Austral.'); axis2 label=('Total Tons' justify=right 'Produced'); axis3 label=none; /* select the pattern */ pattern1 value=solid; /* produce the bar chart */ proc gchart data=sampsio.grainprd; vbar country / group=year sumvar=amount patternid=midpoint space=.5 frame coutline=black maxis=axis1 raxis=axis2 gaxis=axis3 des='D0353U03-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0353U04 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0353U04 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GCHART | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'Total Corn, Rice, and Wheat Production'; footnote1 justify=right 'D0353U04 '; /* modify the axes */ axis1 label=none value=(angle=-45 'Austral.'); axis2 label=('Total Tons' justify=right 'Produced'); axis3 label=none; /* repeat the patterns */ pattern1 value=solid repeat=2; /* produce the bar chart */ proc gchart data=sampsio.grainprd; vbar country / group=year sumvar=amount patternid=midpoint space=.5 frame coutline=black maxis=axis1 raxis=axis2 gaxis=axis3 des='D0353U04-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0353U05 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0353U05 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GCHART | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'Total Corn, Rice, and Wheat Production'; footnote1 justify=right 'D0353U05 '; /* modify the axes */ axis1 label=none value=(angle=-45 'Austral.'); axis2 label=('Total Tons' justify=right 'Produced'); axis3 label=none; /* select the patterns and colors */ pattern1 value=l3 color=blue; pattern2 value=x3 color=blue; /* produce the chart */ proc gchart data=sampsio.grainprd; vbar country / group=year sumvar=amount patternid=group space=.5 frame coutline=black maxis=axis1 raxis=axis2 gaxis=axis3 des='D0353U05-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0353U06 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0353U06 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GMAP MAPS | | PROCS: GMAP | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'Hazardous Waste Site Installations'; footnote1 justify=right 'D0353U06 '; /* modify the legend */ legend1 shape=bar(3,3) label=(position=middle 'Number of' justify=left 'Sites') value=( 'Missing' 'Under 13 ' '13-37' '38-62' 'Over 62'); /* select the patterns and colors */ pattern1 value=mempty; pattern2 value=m1x45; pattern3 value=m3x45; pattern4 value=m5x45; pattern5 value=msolid; /* produce the choropleth map */ proc gmap map=maps.us data=sampsio.allsites; id state; choro sites / missing levels=4 legend=legend1 des='D0353U06-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0353U07 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0353U07 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GCHART | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define titles and footnote */ title1 'Total Corn, Rice, and Wheat Production'; title2 height=4 '1986-1987'; footnote1 justify=right 'D0353U07 '; /* select the patterns and colors */ pattern1 value=p3n01 color=blue; pattern2 value=p3n01 color=green; pattern3 value=p3n01 color=red; pattern4 value=p3x90 color=blue; pattern5 value=p3x90 color=green; /* produce the chart */ proc gchart data=sampsio.grainprd; pie country / sumvar=amount noheading coutline=black des='D0353U07-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0354U01 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0354U01 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GPLOT | | PROCS: GPLOT | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* define title and footnote */ title1 'Unit Labor Costs for Canada, Japan, and US'; footnote1 justify=right 'D0354U01 '; /* define a SYMBOL statement for each plot */ symbol1 interpol=join value=diamond color=red height=3; symbol2 interpol=join value=circle color=blue height=3; symbol3 interpol=join value=square color=green height=3; /* modify horizontal axis */ axis1 minor=none label=none length=60 pct offset=(4,4); /* modify vertical axis */ axis2 minor=(number=1) label=('US Dollars') order=100 to 200 by 10; /* produce plot with annotation */ proc gplot data=sampsio.labrsort; plot dollars*year=country / haxis=axis1 vaxis=axis2 frame nolegend anno=sampsio.pltanno des='D0354U01-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0354U02 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0354U02 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GMAP MAPS | | PROCS: GMAP | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* select the states to include in the map */ data region; set maps.us; if fipstate(state) in('KY','TN','NC','SC','GA', 'FL','AL','MS'); run; /* define title and footnote */ title1 'States in Region 4'; footnote1 justify=right 'D0354U02 '; /* define the pattern to use */ pattern color=black value=mempty; /* produce the map */ proc gmap map=region data=region; id state; choro state / nolegend levels=1 annotate=sampsio.mapanno des='D0354U02-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0355U01 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0355U01 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GCHART | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=8 htext=5 ftext=zapf border; /* define titles and footnote */ title1 height=.2; title2 height=8 font=zapf 'Employee Claims'; footnote1 height=5 justify=right 'D0355U01 '; /* define the appearance of the axes */ axis1 label=none; axis2 label=none; axis3 order=(0 to 600000 by 200000) minor=none label=none value=(justify=right '0' '$200,000' '$400,000' '$600,000'); /* select the patterns for the bars */ pattern1 value=solid color=green; pattern2 value=solid color=blue; /* produce the bar chart */ proc gchart data=sampsio.hlthcare gout=temp; vbar year / sumvar=emp name='D0355U01' ref=(200000 400000) clipref patternid=midpoint width=6 noheading coutline=black caxis=black maxis=axis2 gaxis=axis1 raxis=axis3 frame des='D0355U01-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0355U02 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0355U02 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GCHART | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=8 htext=5 ftext=zapf border; /* define titles and footnote */ title1 height=.2; title2 height=8 f=zapf " Administrative Costs"; footnote1 height=5 justify=right 'D0355U02 '; /* define appearance of axes */ axis1 label=none; axis2 label=none; axis3 order=(0 to 600000 by 200000) minor=none label=none value=(j=r '0' '$200,000' '$400,000' '$600,000'); /* select patterns for bars */ pattern1 value=solid color=green; pattern2 value=solid color=blue; /* produce the bar chart */ proc gchart data=sampsio.hlthcare gout=temp; vbar year / sumvar=admin name='D0355U02' ref=(200000 400000) clipref coutline=black caxis=black patternid=midpoint width=6 noheading maxis=axis2 gaxis=axis1 raxis=axis3 frame des='D0355U02-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0355U03 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0355U03 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GCHART | | PROCS: GCHART | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=8 htext=5 ftext=zapf border; /* define titles and footnote */ title1 height=.2; title2 height=8 font=zapf " Health Center Budget"; footnote1 justify=right 'D0355U03 '; /* define appearance of axes */ axis1 label=none; axis2 label=none; axis3 order=(0 to 600000 by 200000) minor=none label=none value=(justify=right '0' '$200,000' '$400,000' '$600,000'); /* select patterns for bars */ pattern1 value=solid color=green; pattern2 value=solid color=blue; /* produce the bar chart */ proc gchart data=sampsio.hlthcare gout=temp; vbar year / sumvar=budget name='D0355U03' ref=(200000 400000) clipref width=6 patternid=midpoint caxis=black coutline=black noheading maxis=axis2 gaxis=axis1 raxis=axis3 frame des='D0355U03-1'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0355U04 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0355U04 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: USAGE SAMPSIO GRAPHICS GSLIDE | | PROCS: GSLIDE | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=8 htext=5 ftext=zapf border; /* define titles and footnote */ title1 'Total Expenses'; title2 height=3; footnote1 justify=right 'D0355U04 '; /* produce the text slide */ proc gslide gout=temp name='D0355U04' des='D0355U04-1'; note justify=center height=6 move=(51,80) '1987' move=(71,80)'1988'; note draw=(10, 77, 90, 77); note draw=(45, 85, 45, 20); note justify=left height=6 move=(10,70) ' Employee' justify=left height=6 move=(10,65) ' Claims' height=5 move=(50,65) '$589,918' height=5 move=(70,65) '$210,000'; note justify=left height=6 move=(10,55) ' Administrative' justify=left height=6 move=(10,50) ' Costs' height=5 move=(50,50) '$146,230' height=5 move=(70,50) '$230,000'; note justify=left height=6 move=(10,40) ' Health Care ' justify=left height=6 move=(10,35) ' Budget' height=5 move=(50,35) '$208,674' height=5 move=(70,35) '$290,000'; note draw=(10, 30, 90, 30); note justify=left height=6 move=(10,24) ' Totals ' height=5 move=(50,24) '$944,822' height=5 move=(70,24) '$730,000'; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0355U05 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0355U05 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GREPLAY | | PROCS: GREPLAY | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* list contents of template catalog */ proc greplay nofs tc=sashelp.templt; list tc; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0355U06 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0355U06 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GREPLAY | | PROCS: GREPLAY | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* reset the background color */ goptions cback=; /* list contents of template catalog */ proc greplay nofs tc=sashelp.templt; preview l2r2; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0355U07 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0355U07 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GREPLAY | | PROCS: GREPLAY | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* replay graphs into L2R2 template */ proc greplay nofs igout=work.temp tc=sashelp.templt template=l2r2; tplay 1:D0355U01 2:D0355U02 3:D0355U03 4:D0355U04; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0355U08 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0355U08 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GREPLAY | | PROCS: GREPLAY | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* list contents of IGOUT catalog */ proc greplay igout=work.gseg nofs; list igout; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0355U09 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0355U09 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GREPLAY | | PROCS: GREPLAY | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct cback=white colors=(black blue green red) htitle=8 htext=5 ftext=zapf border; /* replay templated graph */ proc greplay igout=work.gseg nofs; replay template; run; quit; /*+-------------------------------------------------------------+ | S A S S A M P L E L I B R A R Y | | | | NAME: D0355U10 | | TITLE: SAS/GRAPH USAGE GUIDE EXAMPLE D0355U10 | | PRODUCT: SAS/GRAPH | | SYSTEM: ALL | | KEYS: DOC SAMPSIO GRAPHICS GREPLAY | | PROCS: GREPLAY | | DATA: EXTERNAL | | | | SUPPORT: COMPUTER GRAPHICS STAFF UPDATE: 15MAY91 | | REF: SAS/GRAPH USAGE GUIDE | | MISC: ASSIGN THE LIBREF, SAMPSIO, TO THE APPROPRIATE SAS | | DATA LIBRARY OR RUN THE SAMPLE LIBRARY MEMBER, | | D03DATA, BEFORE RUNNING THIS SAMPLE LIBRARY MEMBER.| +-------------------------------------------------------------+*/ /* set selected graphics options for the examples */ goptions reset=global gunit=pct colors=(black blue green red) htitle=6 htext=3 ftext=zapf border; /* open GREPLAY windows */ proc greplay igout=work.temp tc=sashelp.templt; run;