R/nr-draw.R
nr_point.Rd
Draw points on a native raster image
nr_point(nr, x, y, color = "black", use_alpha = TRUE)
native raster image
Vectors of point coordinates
Vector of colors
Use alpha channel when drawing? Logical. Default: TRUE
Invisibly return the supplied native raster image which was been modified in-place
N <- 20 nr <- nr_new(N, N, 'grey80') nr_point(nr, x = seq(N), y = seq(N), color = rainbow(N)) plot(nr)