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 June 30, 2024, 8:14 p.m.