Convert points to raster scatterplot rather quickly.
2-column float matrix with point coordinates. As usual with
rasters in R, X axis grows right, and Y axis grows DOWN.
Flipping ylim
causes the usual mathematical behavior.
2-element vector integer size of the result raster,
defaults to c(512,512)
.
Float limits as usual (position of the first pixel on the
left/top, and the last pixel on the right/bottom). You can
easily flip the top/bottom to the "usual" mathematical
system by flipping the ylim
vector.
4-row matrix with color values of 0-255, or just a single 4-item
vector for c(r,g,b,a)
. Best created with col2rgb(..., alpha=TRUE)
.
Additional point radius in pixels, 0=single-pixel dots (fastest)
Output R-style raster (as.raster)? Default TRUE. Raw array output can be used much faster, e.g. for use with png::writePNG.
Raster with the result.