plotRasterImage: Plot raster image

View source: R/utils.R

plotRasterImageR Documentation

Plot raster image

Description

Small helper function to plot a raster image.

Usage

plotRasterImage(img)

Arguments

img

a raster object representing a bitmap image.

Value

A ggplot object.

Examples

 hgrid <- hcl(0, 80, seq(50, 80, 10))
 img <- as.raster(matrix(hgrid, nrow = 4, ncol = 5))
 plotRasterImage(img)

ccb-hms/MerfishData documentation built on April 24, 2023, 7:08 a.m.