ods html;
ods listing image_dpi = 300;
ods graphics / reset noborder width = 9in height = 5.5in;
proc template;
define statgraph dist5;
begingraph;
title 'title1';
entrytitle 'title';
entryfootnote halign = left 'footnote' ;
layout lattice / rows = 2 columns = 1 columndatarange = union rowweights = (0.8 0.2) columngutter = 0.2 rowgutter = 0.2;
columnaxes;
columnaxis / display = (ticks tickvalues label) label = "aa";
endcolumnaxes;
layout overlay / yaxisopts = (display = (ticks tickvalues label) label = "aa" griddisplay = on) ;
entry 'entry';
barchart x = type y = mpg_city / group = drivetrain stat = mean dataskin = gloss
groupdisplay = cluster;
endlayout;
layout overlay;
boxplot x = type y = horsepower / fillattrs = graphdata2;
endlayout;
endlayout;
endgraph;
end;
run;
proc sgrender data = sashelp.cars template = dist5;
where type ne "Hybird";
run;
proc template;
define statgraph dist6;
begingraph;
title 'title1';
entrytitle 'title';
entryfootnote halign = left 'footnote' ;
layout lattice / rows = 1 columns = 2 columndatarange = union rowweights = (0.8 0.2) order = rowmajor
columngutter = 0.2 rowgutter = 0.2;
rowaxes;
rowaxis / display = (ticks tickvalues label) label = "aa";
endrowaxes;
column2headers;
entry textattrs = graphlabeltext(weight = bold) "Systolic";
entry textattrs = graphlabeltext(weight = bold) "Diastolic";
endcolumn2headers;
layout overlay / xaxisopts = (display = (ticks tickvalues label) label = "aa" griddisplay = on) ;
entry 'entry';
scatterplot x = cholesterol y = systolic / datatransparency = 0.9
markerattrs = graphdata1(symbol = circlefilled);
endlayout;
layout overlay / xaxisopts = (griddisplay = on) ;
scatterplot x = cholesterol y = diastolic / datatransparency = 0.9
markerattrs = graphdata1(symbol = circlefilled);
endlayout;
endlayout;
endgraph;
end;
run;
proc sgrender data = sashelp.heart template = dist6;
run;
proc template;
define statgraph dist7;
begingraph / subpixel = on;
layout lattice / columns = 2;
layout overlay / xaxisopts = (display = (ticks tickvalues label) label = "aa" griddisplay = on) ;
entry 'entry';
scatterplot x = horsepower y = mpg_city / filledoutlinedmarkers = true dataskin = gloss
markerattrs = (size = 12 symbol = circlefilled)
markerfillattrs = graphdata1;
regressionplot x = horsepower y = mpg_city / degree = 2;
endlayout;
layout lattice / columndatarange = union rows = 2 columns = 1;
columnaxes;
columnaxis;
endcolumnaxes;
layout overlay;
barchart x = origin y = mpg_city / stat = mean dataskin = gloss fillattrs = graphdata3;
endlayout;
layout overlay;
boxplot x = origin y = mpg_city / fillattrs = graphdata5;
endlayout;
endlayout;
endlayout;
endgraph;
end;
run;
proc sgrender data = sashelp.CARS template = dist7;
run;