Uses Bresenham's algorithm to draw lines. No antialiasing.
nr_line(nr, x0, y0, x1, y1, color = "black")
nativeRaster
Vectors of coordinates of endpoints of line
Color as a character string. Either a standard R color
(e.g. 'blue', 'white')
or a hex color of the form #rrggbbaa
, #rrggbb
, #rgba
or #rgb
Original nativeRaster
modified in-place