cpp_raster | R Documentation |
low-level function to create plot raster
width |
a uint16_t determining the returned image width. |
height |
a uint16_t determining the returned image height. |
obj |
a List containing drawing information: |
bg_ |
a Nullable IntegerVector that will be cast to 3D array when not NULL. Default is R_NilValue. |
shape according to 'pch' will be drawn centered at coordinates obj$coord[, 1], obj$coord[, 0] and every pixels being part of the shape will be filled with 'color'. If only one 'color' is provided, this 'color' will be used for each points. If more than one 'color' is provided, then if number of colors (ncol) equals the number of points 'color' will be used as is for each single point. Otherwise, 'color' will be considered as a color-gradient and density will be computed. /!\ please note that IFC:::densCols() is faster to compute color based on density for n < 20000 points, so it's worth using it when number of points are lower.
an IntegerVector with dimensions [height, width, 4]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.