plot: Visualize an MS image. 'plot' extends the generic function to...

plot,ms.image,missing-methodR Documentation

Visualize an MS image. plot extends the generic function to ms.image-class objects.

Description

Visualize an MS image. plot extends the generic function to ms.image-class objects.

Usage

## S4 method for signature 'ms.image,missing'
plot(x, palette = "inferno")

Arguments

x

ms.image-class object. See msImage.

palette

string. Color palette. See viridis.

Value

a ggplot2 plot.

Examples

## Load package


  library("SPUTNIK")

  ## Create ms.image-class object
  msIm <- msImage(values = matrix(rnorm(200), 40, 50), name = "test", scale = TRUE)
  
  ## Plot the image
  plot(msIm)


paoloinglese/SPUTNIK documentation built on April 18, 2024, 8:56 p.m.