View source: R/scatter_points_rgbwt.R
scatter_points_rgbwt | R Documentation |
Colorize given data with one given color or each point has its corresponding given color.
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 float matrix with point coordinates. As usual with
rasters in R, X axis grows right, and Y axis grows DOWN.
Flipping |
xlim |
Float limits as usual (position of the first pixel on the
left/top, and the last pixel on the right/bottom), 2-element vector.
You can easily flip the top/bottom to the "usual" mathematical
system by flipping the |
ylim |
Float limits as usual (position of the first pixel on the
left/top, and the last pixel on the right/bottom), 2-element vector.
You can easily flip the top/bottom to the "usual" mathematical
system by flipping the |
out_size |
2-element vector, integer size of the result histogram,
defaults to |
RGBA |
Integer vector with 4 elements or matrix or array (4xn dim, n >= 2, n ~ xy rows) with R, G, B
and alpha channels in integers, defaults to |
map |
Integer vector with indices to |
palette |
Matrix or array (4xn dim, n >= 2, n ~ xy rows) with R, G, B and alpha channels in integers. |
Float RGBWT matrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.