4. Example
data example1; proc plot;
do i=1 to 200; title 'this is an example';
x=10*rannor(100); title2 'x vs y';
y=x+10*rannor(3); plot x*y;
if i<100 then g=0; by g;
else g=1; run;
output;
end;
drop i;
;
5.
6. Options for plot
proc plot;
title 'this is an example';
title2 'x vs y';
plot x*y;
plot x*y/box;
plot x*y/box vaxis=0 5 10 15 20 haxis=by 3;
run;
7. Options for plot: box
proc plot;
title 'this is an example';
title2 'x vs y';
plot x*y;
plot x*y/box;
plot x*y/box vaxis=0 5 10 15 20 haxis=by 3;
run;
8. Options for plot: axis
proc plot;
title 'this is an example';
title2 'x vs y';
plot x*y;
plot x*y/box;
plot x*y/box vaxis=0 5 10 15 20 haxis=by 3;
run;