SAS gridded
作者:互联网
gridded和lattice区别在于gridded一般用于structure一个table,展现统计量,这个table一般长宽较小。
和lattice功能相近,不支持common, uniform, external axes.
layout gridded / rows = 3 columns = 3 order = columnmajor先把前三个entry读入第一列,再把中间三个entry读入第二列,再把最后三个entry读入最后一列。
ods html; ods listing image_dpi = 300; ods graphics / reset noborder width = 9in height = 5.5in; proc template; define statgraph dist5; begingraph; layout overlay / yaxisopts = (display = (ticks tickvalues label) label = "aa" griddisplay = on) ; entry 'entry'; scatterplot x = horsepower y = mpg_city / filledoutlinedmarkers = true dataskin = gloss markerfillattrs = graphdata1; regressionplot x = horsepower y = mpg_city / degree = 2; layout gridded / rows = 3 columns = 3 order = columnmajor border = true autoalign = (topright topleft); entry textattrs = (size = 10) halign = right "N = "; entry textattrs = (size = 10) halign = right "Mean = "; entry textattrs = (size = 10) halign = right {unicode SIGMA} " = "; entry textattrs = (size = 10) halign = left eval(strip(put(n(mpg_city),4.0))); entry textattrs = (size = 10) halign = left eval(strip(put(mean(mpg_city),4.1))); entry textattrs = (size = 10) halign = left eval(strip(put(stddev(mpg_city),4.1))); entry textattrs = (size = 10) halign = left "ddddddd"; entry textattrs = (size = 10) halign = right "eeeeeeee"; entry textattrs = (size = 10) halign = left "fffffffffffff"; endlayout; endlayout; endgraph; end; run; proc sgrender data = sashelp.cars template = dist5; run;
标签:10,mpg,gridded,halign,SAS,entry,textattrs,size 来源: https://www.cnblogs.com/Python-T/p/15371307.html