开发者

Grayscale stacked area plot in R

开发者 https://www.devze.com 2023-03-07 12:30 出处:网络
I am plotting a stacked area plot in 开发者_StackOverflowR using the stackpoly() command in the plotrix package. The default colors are glaring, to say the least. Is there any way to use symbols or gr

I am plotting a stacked area plot in 开发者_StackOverflowR using the stackpoly() command in the plotrix package. The default colors are glaring, to say the least. Is there any way to use symbols or grayscale instead?


From ?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.

Slightly modifying the example in ?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)))

Grayscale stacked area plot in R

0

精彩评论

暂无评论...
验证码 换一张
取 消