ws wrote:
Hi all

Another question related to my earlier -- how might I get transparency to work with pyramid.plot in library(plotrix)? I can't figure it out, and the help page says it is there but doesn't give an example.


Works for me just by specifying colors with some alpha value as in:


pyramid.plot(matrix(1:30, ncol=3), matrix(1:30, ncol=3), labels=1:10, xycol = c(rgb(0,0,0,0.3), rgb(1,0,0,0.3), rgb(0,1,0,0.3)))

par(new=TRUE)

pyramid.plot(matrix(1:30, ncol=3), matrix(1:30, ncol=3), labels=1:10, xycol = c(rgb(0,0,0,0.3), rgb(1,0,0,0.3), rgb(0,1,0,0.3)))

Uwe Ligges



Thanks!

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to