Sas plot
-
Upload
wensheng-chang -
Category
Documents
-
view
231 -
download
0
Transcript of Sas plot
Plot procedure3/28
Syntax
PROC PLOT <option(s)>;BY <DESCENDING> variables;PLOT plot-request(s) </ option(s)>;
RUN;
Syntax
PROC PLOT <option(s)>;
BY <DESCENDING> variables;
PLOT plot-request(s) </ option(s)>;
RUN;
Example
data example1;do i=1 to 200;
x=10*rannor(100);y=x+10*rannor(3);if i<100 then g=0;
else g=1;output;
end;drop i;;
proc plot;title 'this is an example';title2 'x vs y';plot x*y;by g;
run;
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;
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;
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;