С ?stackpoly
:
col: Color to fill the polygons. If NULL, ‘rainbow’ will be called
to generate the colors. If NA, the polygons will not be
filled.
Немного изменив пример в ?stackpoly
:
stackpoly(matrix(cumsum(testx),nrow=10),main="Test Stackpoly I",
xaxlab=c("One","Two","Three","Four","Five","Six","Seven","Eight","Nine","Ten"),
border="black",staxx=TRUE,
col=gray(seq(0.1,0.9,length=10)))