plotRasterImage | R Documentation |
Small helper function to plot a raster image.
plotRasterImage(img)
img |
a raster object representing a bitmap image. |
A ggplot object.
hgrid <- hcl(0, 80, seq(50, 80, 10))
img <- as.raster(matrix(hgrid, nrow = 4, ncol = 5))
plotRasterImage(img)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.