SAS颜色系列单独在SGPLOT中



假设我有四个X-Y图,我想在同一个图上绘制。如何分别为每个线图着色

我已经尝试了以下代码:

proc sgplot data = band;
*styleattrs datacolors=(lightblue red green blue black purple brown yellow);
series x = X  y = a /markerattrs=(color=green);
series x = X  y = b /markerattrs=(color=blue);
series x = X y =c /markerattrs=(color=lightblue);
series x = X y =d /markerattrs=(color=red);
run;

干杯。

你几乎做到了

proc sgplot data = band;
series x = X  y = a /lineattrs=(color=green);
series x = X  y = b /lineattrs=(color=blue);
series x = X y =c /lineattrs=(color=lightblue);
series x = X y =d /lineattrs=(color=red);
run;

同时,datacolors=只对不同的群体有效,而对不同的地块无效。

最新更新