imshow | R Documentation |
A simple way of displaying an image, using the image
function.
imshow(x,col=palette(gray(0:255/255)),useRaster = TRUE,...)
x |
the image to display as a matrix. |
col |
the color palette to use when displaying the image. |
useRaster |
logical; if TRUE a bitmap raster is used to plot the image instead of polygons. The grid must be regular in that case, otherwise an error is raised. For the behaviour when this is not specified, see the ‘Details’ section of the |
... |
additionial arguments to provide to subfunctions. |
This function returns nothing.
image
Im = diag(16)
imshow(Im)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.