apply.palette.to.rawdata | R Documentation |
Apply a palette to index data to create a 2D image.
apply.palette.to.rawdata(raw_data, apply_palette, img_width, img_height)
raw_data |
integer vector of pixel data, each entry represents an index into the palette. |
apply_palette |
integer matrix, the palette. |
img_width |
integer, the width of the image to create. |
img_height |
integer, the height of the image to create. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.