I just tried one of Rick's Macros: https://blogs.sas.com/content/iml/2012/10/22/whats-in-a-name.html Seems to work, although the data A "Rose" step didn't seem to be necessary. This is what I did: /* convert integer 0--255 to 2 digit hex 00-FF */ %macro hex2(n); %local digits n1 n2; %let digits = 0123456789ABCDEF; %let n1 = %substr(&digits, &n / 16 + 1, 1); %let n2 = %substr(&digits, &n - &n / 16 * 16 + 1, 1); &n1&n2 %mend hex2; /* convert RGB triplet (r,g,b) to SAS color in hexadecimal. The r, g, and b parameters are integers in the range 0--255 */ %macro RGB(r,g,b); %cmpres(CX%hex2(&r)%hex2(&g)%hex2(&b)) %mend RGB; proc sgplot data=sashelp.class; scatter x=height y=weight / markerattrs=(size=14 symbol=CircleFilled color=%RGB(0,107,250) ); run; proc sgplot data = SplineOut; YAXIS label = "Estimated probably of Vasoplegia within 24h in ICU"; XAXIS label = "Induction SBP"; band x=Ind_SBP1 lower=l upper=u/fillattrs = (color =%RGB(0,107,250)); series x = Ind_SBP1 y = fit/ curvelabel = "Predicted value" lineattrs=(color =black pattern=solid); series x = Ind_SBP1 y = u/ curvelabel = "Upper CI" lineattrs=(color =black pattern=LONGDASHSHORTDASH); series x = Ind_SBP1 y = l/ curvelabel = "Lower CI" lineattrs=(color =black pattern=LONGDASHSHORTDASH); run; I don't know why a Macro was necessary because this macro was meant I guess to pre-set a value for Rose. Is it not possible in SAS do achieve these colours with out the macro for the RGB settings? Why can I not get this by specifying the CMYK setting for the desired colour? And Yes, despite 20 years living in the States, I still can't spell proper-like.
... View more