Vertical white lines when building a heat map in TIFF

When I draw a matrix with the image function as a TIFF file, I often get vertical or horizontal lines.

My matrix has 150,000 rows x 2,000 columns, rows also appear when building matrices from 150,000 rows x 100 columns. The results are the same.

Where do the lines come from? Is this some kind of pixel artifact? I get them almost all the time.

The matrix looks like this:

  V999 V1000 V1001 V1002 V1003 V1004 V1005 V1006 V1007 V1008 V1009 V1010 [1,] 1 4 0 0 15 15 15 15 8 0 1 0 [2,] 0 3 12 5 15 15 15 1 15 4 0 2 [3,] 0 0 0 3 6 15 15 15 15 15 0 3 [4,] 3 6 15 15 15 15 15 0 3 15 15 2 [5,] 15 15 15 0 3 15 15 2 1 5 8 11 [6,] 2 1 5 8 11 15 15 15 0 0 4 3 tiff("test.tiff", width=450, height=1100) image(t(mc), col = col1, main="950-1500" dev.off() 

Any hints / comments would be highly appreciated.

enter image description here

+6
source share
1 answer

You see the smoothing artifact from the x11 () screen. You can try dragging the window to make it larger or smaller, and in the end you will find the size and width of the window that are compatible with your desired resolution.

+2
source

Source: https://habr.com/ru/post/927455/


All Articles