EntryTitle __BYLINE__ / textattrs=(size=GraphLabelText:fontsize); layout overlay / yaxisopts=(labelFitPolicy=Split) y2axisopts=(labelFitPolicy=Split); ScatterPlot X=Height Y=Weight / subpixel=off primary=true LegendLabel="Weight" NAME="SCATTER"; DrawText "Students" / X=20 Y=85 WIDTH...
EntryTitle __BYLINE__ / textattrs=(size=GraphLabelText:fontsize); layout overlay / yaxisopts=(labelFitPolicy=Split) y2axisopts=(labelFitPolicy=Split); ScatterPlot X=Height Y=Weight / subpixel=off primary=true LegendLabel="Weight" NAME="SCATTER"; DrawText "Students" / X=20 Y=85 WIDTH...
EntryTitle __BYLINE__ / textattrs=(size=GraphLabelText:fontsize); layout overlay / yaxisopts=(labelFitPolicy=Split) y2axisopts=(labelFitPolicy=Split); ScatterPlot X=Height Y=Weight / subpixel=off primary=true LegendLabel="Weight" NAME="SCATTER"; DrawText "Students" / X=20 Y=85 WIDTH...
LegendLabel="Weight" NAME="SCATTER";DrawText"Female Students" / X=20 Y=85 WIDTH=100;DrawText"Male Students" / X=20 Y=85 WIDTH=100;endlayout;endgraph;end;run; 现在有两个DRAWTEXT语句。两者都是无条件使用的。因此,如果我们想在每个图中使用不同的注释,我们必须以其他方式处理这个问题。如果要为...
EntryTitle __BYLINE__ / textattrs=(size=GraphLabelText:fontsize);layout overlay / yaxisopts=(labelFitPolicy=Split) y2axisopts=(labelFitPolicy=Split);annotate / id=_BYVAL_;ScatterPlot X=HEIGHT Y=WEIGHT / subpixel=off primary=true LegendLabel="Weight" NAME="SCATTER";endlayout;endgraph;...
labelattrs = (color = white weight = bold) label = "x10(*ESC*){unicode '2079'x}/L"; keylegend / noborder noopaque title=" " /*修改图例属性*/ valueattrs = (color = white size = 10 weight = bold); run; 结果如下: 3.8 指定分组线条颜色 ...
You can create customized legends by using one or moreKEYLEGENDstatements. You can use theKEYLEGENDstatement to control the contents, title, location, and border of the legend. You can specify the labels that represent your plots in the legend by using theLEGENDLABEL=option in the corresponding...
PROC SGPLOT DATA=SGSAMPLE; DOT AREA / RESPONSE=HEIGHT STAT=MEAN LIMITSTAT=STDDEV NUMSTD=1; 自行給定的數值,此為全體個案身高的平均值 REFLINE 163.4 / AXIS= X NAME=MEAN LINEATTRS=(COLOR=RED) LEGENDLABEL=Overall average; RUN; 【程式2 】繪製各地區身高平均值的點圖 並加減 1個標準差的範圍 中國...
data dattrmap; input id $ value $ fillcolor $; cards; id F blue id M green ; proc sgplot data=sashelp.class dattrmap=dattrmap; vbar age/group=sex groupdisplay=stack attrid=id; legenditem type=FILL name="F" /label='Female' fillattrs=(color=blue); legenditem type...
id M green;proc sgplotdata=sashelp.classdattrmap=dattrmap;vbar age/group=sex groupdisplay=stack attrid=id;legenditem type=FILLname="F"/label='Female'fillattrs=(color=blue);legenditem type=FILLname="M"/label='Male'fillattrs=(color=green);keylegend"F""M";run; ...