在SGPLOT中单独使用SAS颜色系列 假设我有四个X-Y图,我想在同一个图形上绘制。我如何分别给每个线条图上色?

在SGPLOT中单独使用SAS颜色系列 假设我有四个X-Y图,我想在同一个图形上绘制。我如何分别给每个线条图上色?,sas,Sas,我尝试了以下代码: 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=light

我尝试了以下代码:

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=
只对不同的组生效,而不是对不同的绘图生效。

你几乎做到了

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=
只对不同的组生效,而不是对不同的绘图生效