Anybody have a solution for removing the white lines seen here in the graduated rectangles at the top of the plot? These are produced with gradient.rect
from the plotrix
package.
gradient.rect(as.Date("1979-05-04"),70,as.Date("1990-11-28"),80,col=smoothColors("royalblue",100.0,"white"),border=NA,gradient="x")
They appear both in the output from RStudio and in the exported PNG.
I was able to reproduce the problem (although not that image) with this code:
Then I saw three thin, white vertical bands. I looked at the RGB values and plotted their hexadecimal equivalents:
I noticed that there were uneven gaps in the sequences so tried using smaller number of colors with better success:
I don't really understand why this happens. You might contact Jim Lemon if you need an explanation ... rather than just a fix strategy. His email address should appear at your R console if you type:
maintainer("plotrix")