Features: |
|
Other features: |
GOPTIONS statement option: BORDER BY statement GOPTIONS statement |
Sample library member: | GPLDRIL1 |
filename odsout "C:\";
goptions reset=all border device=gif;
ods html path=odsout body="city_plots.html" nogtitle;
data citytemp; input Month Fahrenheit City $ @@; datalines; 1 40.5 Raleigh 1 12.2 Minn 1 52.1 Phoenix 2 42.2 Raleigh 2 16.5 Minn 2 55.1 Phoenix 3 49.2 Raleigh 3 28.3 Minn 3 59.7 Phoenix 4 59.5 Raleigh 4 45.1 Minn 4 67.7 Phoenix 5 67.4 Raleigh 5 57.1 Minn 5 76.3 Phoenix 6 74.4 Raleigh 6 66.9 Minn 6 84.6 Phoenix 7 77.5 Raleigh 7 71.9 Minn 7 91.2 Phoenix 8 76.5 Raleigh 8 70.2 Minn 8 89.1 Phoenix 9 70.6 Raleigh 9 60.0 Minn 9 83.8 Phoenix 10 60.2 Raleigh 10 50.0 Minn 10 72.2 Phoenix 11 50.0 Raleigh 11 32.4 Minn 11 59.8 Phoenix 12 41.2 Raleigh 12 18.6 Minn 12 52.5 Phoenix ;
data newtemp; set citytemp; length citydrill $ 40; if city="Minn" then citydrill="HREF='city_reports.html#IDX'"; else if city="Phoenix" then citydrill="HREF='city_reports.html#IDX1'"; else if city="Raleigh" then citydrill="HREF='city_reports.html#IDX2'";
title1 "Average Monthly Temperature"; footnote1 j=l " Click a data point or legend symbol"; symbol1 interpol=join value=dot;
proc gplot data=newtemp; plot fahrenheit*month=city / hminor=0 html=citydrill html_legend=citydrill; run; quit;
ods html path=odsout body="city_reports.html";
proc sort data=newtemp; by city month; run; quit;
goptions reset=footnote; option nobyline;
title1 "Monthly Temperatures in #byval(city)"; proc report data=newtemp nowindows; by city; column city month fahrenheit; define city / noprint group; define month / group; define Fahrenheit / group; run; quit;
data citytemp; input Month Fahrenheit City $ @@; datalines; 1 40.5 Raleigh 1 12.2 Minn 1 52.1 Phoenix 2 42.2 Raleigh 2 16.5 Minn 2 55.1 Phoenix 3 49.2 Raleigh 3 28.3 Minn 3 59.7 Phoenix 4 59.5 Raleigh 4 45.1 Minn 4 67.7 Phoenix 5 67.4 Raleigh 5 57.1 Minn 5 76.3 Phoenix 6 74.4 Raleigh 6 66.9 Minn 6 84.6 Phoenix 7 77.5 Raleigh 7 71.9 Minn 7 91.2 Phoenix 8 76.5 Raleigh 8 70.2 Minn 8 89.1 Phoenix 9 70.6 Raleigh 9 60.0 Minn 9 83.8 Phoenix 10 60.2 Raleigh 10 50.0 Minn 10 72.2 Phoenix 11 50.0 Raleigh 11 32.4 Minn 11 59.8 Phoenix 12 41.2 Raleigh 12 18.6 Minn 12 52.5 Phoenix ;
data newtemp; set citytemp; length citydrill $ 40; if city="Minn" then citydrill="HREF='city_reports.html#IDX'"; else if city="Phoenix" then citydrill="HREF='city_reports.html#IDX1'"; else if city="Raleigh" then citydrill="HREF='city_reports.html#IDX2'";
title1 "Average Monthly Temperature"; footnote1 j=l " Click a data point or legend symbol"; symbol1 interpol=join value=dot;
proc gplot data=newtemp; plot fahrenheit*month=city / hminor=0 html=citydrill html_legend=citydrill; run; quit;