I am trying to plot this checker pattern:
checker_pattern <- rbind(c(1/3, 2/3),
c(2/3, 1/3))
plot(imager::as.cimg(checker_pattern))
According to this site http://www.sumsar.net/blog/2019/01/image-dithering-in-r/, we should get the following outcome, which I also desire:
However, I get this outcome running the exact same code:
Why do R seem to blur or smooth out the colors in the plot? How do I turn off this blurring?
A similar question (R mschart turn off line smoothing) mentions scaling. I do not know if that gives us a clue in this case.