Hi,
you already have an answer but here is a "polygon" approach:
data have;
do x = 1 to 10;
Y = 0.5 * X + 1 + RANNOR(123);
output;
end;
run;
data polydata; /* create polygon data */
input IDp :$ Xp Yp;
datalines;
1 6 0
1 10 0
1 10 10
1 6 10
;
run;
data toPlot; /* combine plot data and polygon data*/
set have polydata;
run;
PROC SGPLOT data = toPlot;
polygon X=xp Y=yp id=idp /
fill
nooutline
fillattrs=(color=green transparency=0.6) /* set polygon's transparency and colour */
;
series x=x y=y;
run;
Result:
Bart
... View more