View source: R/scatter_points_rgbwt.R
scatter_points_rgbwt | R Documentation |
Render colored points into a RGBWT bitmap
scatter_points_rgbwt(
xy,
xlim = c(min(xy[, 1]), max(xy[, 1])),
ylim = c(min(xy[, 2]), max(xy[, 2])),
out_size = c(512, 512),
RGBA = c(0, 0, 0, 255),
map = NULL,
palette = NULL
)
xy |
2-column matrix with N point coordinates (X and Y) in rows. |
xlim, ylim |
2-element vector of rendered area limits (position of the first pixel on the
left/top, and the last pixel on the right/bottom).
You can flip the image coordinate system by flipping the |
out_size |
2-element vector size of the result raster, defaults to |
RGBA |
Point colors. Either a 4-element vector that specifies the same color for all points,
or 4-by-N matrix that specifies color for each of the individual points.
Color is specified using integer RGBA; i.e. the default black is |
map |
Vector with N integer indices to |
palette |
Matrix 4-by-K matrix of RGBA colors used as a palette lookup for the |
A RGBWT array with the rendered points.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.