Sas plot

9
Plot procedure 3/28

Transcript of Sas plot

Page 1: Sas plot

Plot procedure3/28

Page 2: Sas plot

Syntax

PROC PLOT <option(s)>;BY <DESCENDING> variables;PLOT plot-request(s) </ option(s)>;

RUN;

Page 3: Sas plot

Syntax

PROC PLOT <option(s)>;

BY <DESCENDING> variables;

PLOT plot-request(s) </ option(s)>;

RUN;

Page 4: Sas plot

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;

Page 5: Sas plot
Page 6: Sas plot

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;

Page 7: Sas plot

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;

Page 8: Sas plot

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;

Page 9: Sas plot