Draw a rectangle filled with symbols
Draws a rectangle on the current figure filled with arbitrary symbols.
rectFill(x1,y1,x2,y2,fg=par("fg"),bg=par("bg"),xinc=NA,yinc=NA, pch=1,pch.cex=1,pch.col=par("fg"),...)
x1,y1,x2,y2 |
Rectangle limits as in rect. |
fg |
Foreground color |
bg |
Background color |
xinc,yinc |
The x and y increments of spacing for the symbols. |
pch |
Which symbol to use |
pch.cex |
Character expansion for the symbols. |
pch.col |
Color(s) for the symbols. |
... |
Additional arguments to points for the symbols. |
rectFill draws a rectangle and fills the rectangle with the symbols requested. It is probably most useful as a substitute for fill colors in a black and white environment.
nil
Jim Lemon
plot(1:7,type="n",xlab="",ylab="",main="Test of rectFill") rectFill(1:6,1:6,2:7,2:7,bg=2:7,pch=c("+","*","o",".","#","^"), xinc=c(0.2,0.1,0.2,0.1,0.2,0.2),yinc=c(0.2,0.1,0.2,0.1,0.2,0.2), pch.col=1:6) barp(matrix(runif(9),nrow=3),main="Black and white bar plot",pch=1:3)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.