0

I'm using corrplot in R to plot the correlation matrrix. For some reason, the edges of the circles in the plot seems missing some pixels. The plot overall looks very rough. Please see the graph I plotted:

enter image description here

But the example I followed shows the plot is supposed to be like this:

enter image description here

My initial guess was dpi and scaling issue because I use a 4K display. I tried changing the resolution and size of the plots but it doesn't work.

Thank you so much for your help.

OliverZ
  • 11
  • 1
  • 1
    It's easier to help you if you include a simple [reproducible example](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example) with sample input and desired output that can be used to test and verify possible solutions. What output device are you using? – MrFlick Apr 20 '20 at 00:29
  • 2
    Do you get the blurred edges if you save the plot as a pdf? – jared_mamrot Apr 20 '20 at 02:46
  • 1
    The issue you're seeing is most likely a problem with raster displays versus vector displays/formats. If you save it as a vector format (e.g., svg, pdf), then the ratcheted edges should disappear. This is related to several other artifacts that can appear in R's plot windows that are not actually in the plot, just artifacts of the pixelated display. – r2evans Apr 20 '20 at 03:14

0 Answers0