Skip to contents

Plot an image

Usage

at_plot_image(
  img,
  level = NULL,
  bands = NULL,
  rgb = NULL,
  max_dim = 1024L,
  call = rlang::caller_env()
)

Arguments

img

An annot_image.

level

Pyramid level to display; chosen automatically when NULL.

bands

Optional band index for single-band display.

rgb

Optional length-3 vector of band indices, or wavelengths in nm for a spectral cube, for a false-colour composite.

max_dim

Maximum display dimension (auto-downsampled). Default 1024.

call

The calling environment, for error reporting.

Value

A ggplot2::ggplot object.

Examples

at_plot_image(at_example_image("tissue"))