plotImageBase: Plot image with R base plotting

plotImageBaseR Documentation

Plot image with R base plotting

Description

Plots the histology image as a raster.

Usage

plotImageBase(object, ...)

## S4 method for signature 'SPATA2'
plotImageBase(object, xrange = NULL, yrange = NULL, axes = FALSE, ...)

## S4 method for signature 'SpatialData'
plotImageBase(
  object,
  img_name = activeImage(object),
  xrange = NULL,
  yrange = NULL,
  scale_fct = 1,
  axes = TRUE,
  ...
)

## S4 method for signature 'HistoImage'
plotImageBase(
  object,
  img_name = activeImage(object),
  xrange = NULL,
  yrange = NULL,
  scale_fct = 1,
  axes = TRUE,
  ...
)

## S4 method for signature 'Image'
plotImageBase(
  object,
  scale_fct = 1,
  xrange = NULL,
  yrange = NULL,
  axes = TRUE,
  ...
)

Arguments

object

An object of class SPATA2 or, in case of S4 generics, objects of classes for which a method has been defined.

...

Used to absorb deprecated arguments or functions.

xrange, yrange

Distance vector of length two or NULL. If not NULL, specifies the x- and y-range to which the spatial output is cropped. E.g. xrange = c(200, 500) results in the two dimensional space being cropped from x-coordinate 200px up to x-coordinate 500px. If NULL, the original range is used.

img_name

Character value. The name of the image of interest. If NULL, the active image is chosen by default. Either way, must be one of getImageNames().

Value

A plot that is immediately plotted.


theMILOlab/SPATA2 documentation built on Feb. 8, 2025, 11:41 p.m.