SAS barchart

groupdisplay = 定义如何显示group,堆积、簇等等。

 

ods html;

proc template;
define statgraph _barchart;
begingraph / ;
    entrytitle "a";
    layout overlay / xaxisopts = (display = (ticks tickvalues)) yaxisopts = (griddisplay = on);
        barchart category = origin response = mpg_city / group = type stat = mean
                        groupdisplay = cluster dataskin = gloss name = "a";
        discretelegend 'a' / title = "Type: ";
    endlayout;
endgraph;
end;
run;

proc sgrender data = sashelp.cars(where = (type not in ("Hybird" "Truck"))) template = _barchart;
run;

 

posted @ 2021-10-05 13:53  Iving  阅读(316)  评论(0编辑  收藏  举报