Draw circles on a nativeRaster
image
nr_circle(nr, x, y, r, fill = "black", color = NA)
Arguments
- nr
nativeRaster
- x, y
coordinates of centre of circle. [vector]
- r
radius [vector]
- fill
interior fill color [vector]
- color
outline color. Default: NA. [vector]
Value
Original nativeRaster
modified in-place
Examples
N <- 201
nr <- nr_new(N, N, 'grey80')
nr_circle(nr, x = N/2, y = N/2, r = c(N/3, N/4), fill = c('darkred', 'black'))
plot(nr, TRUE)