SAS scatterplot

 

 

ods html;

*DATALABEL = ;

proc template;
define statgraph _scatter;
begingraph;
    entrytitle "Weight by Height";
    layout overlay/xaxisopts = (griddisplay = on) yaxisopts = (griddisplay = on);
        scatterplot x = weight y = height / group = sex datalabel = name name = 'a';
        discretelegend 'a' / title = "Sex: " location = inside halign = right valign = bottom;
    endlayout;
endgraph;
end;
run;

proc sgrender data = sashelp.class template = _scatter;
run;

ods _all_ close;

 

posted @ 2021-10-05 12:21  Iving  阅读(149)  评论(0编辑  收藏  举报