[R] graph shading is overlaying axes

Jim Lemon jim at bitwrit.com.au
Tue Dec 29 11:10:20 CET 2009


On 12/28/2009 10:38 PM, Dean1 wrote:
> How can I resolve this problem?...
>
> As a general example,
> plot (1:4)
> polygon(c(0,0,5,5),c(0,5,5,0), border="lavenderblush1", col =
> "lavenderblush1")
> ###see how this overlays the axes lines
>
> #I have tried...
> for (k in 1:4)  axis(k, lwd.ticks=0, label=F)
> #...but this misses the corners
>    
Hi Dean,
In addition to what Jim Holtman wrote, you can try the fullaxis function 
in the plotrix package.

Jim




More information about the R-help mailing list