Draw rectangles on a nativeRaster
image
nr_rect(nr, x, y, w, h, fill = "black", color = NA, hjust = 0, vjust = 0)
nativeRaster
coordinates of lower left corner of rectangle. [vector]
width and height of rectangle. [vector]
interior fill color [vector]
outline color. Default: NA. [vector]
specify horizontal and vertical justification of the
src
image. e.g. hjust = vjust = 0
the blitting
starts at the top-left of the image. Use hjust = vjust = 0.5
to treat the centre of the src_
as the blitting origin.
Default (0, 0)
Original nativeRaster
modified in-place