My mentor and I are fairly new to using R and we need some help. We are exporting a rasterized image as a tiff but cannot get rid of a white margin that only appears on the exported file. Any help would be appreciated, thanks in advance.
tiff(file = "MyImage.tiff", width=1028,height=1028, res=150)
plot(Image, breaks=breakpoints,col=colors, axes=FALSE, legend=FALSE)
dev.off()