transparentColorBase {sampSurf} | R Documentation |
Setting transparency in base graphics is not as easy as in
Lattice
, so here's a little functon to help.
transparentColorBase(color, alphaTrans = alphaTrans)
color |
The color, or a vector of colors from
|
alphaTrans |
The alpha transparency value between [0,1] with 0 opaque and 1 fully transparent. |
As above.
The rgb value(s), which can be passed to any base graphics routine to get transparency.
Jeffrey H. Gove
## Not run: cols = transparentColorBase('red', alphaTrans=c(0.3,0.6,0.9)) symbols(c(1,1.5,2), c(1,1.5,2), circles=rep(1,3), bg=cols, xlim=c(0,4), ylim=c(0,4)) ## End(Not run)