display: Basic image display.

View source: R/graphics.R

displayR Documentation

Basic image display.

Description

Display an image that has been read in by read_tif() as it would look in 'ImageJ'. This function wraps graphics::plot.raster().

Usage

display(img, ...)

Arguments

img

An ijtiff_img object.

...

Passed to graphics::plot.raster().

Examples

img <- read_tif(system.file("img", "Rlogo.tif", package = "ijtiff"))
display(img)
display(img[, , 1, 1]) # first (red) channel, first frame
display(img[, , 2, ]) # second (green) channel, first frame
display(img[, , 3, ]) # third (blue) channel, first frame
display(img, basic = TRUE) # displays first (red) channel, first frame


ropensci/ijtiff documentation built on July 4, 2025, 3:50 a.m.