Learn R Programming

SPUTNIK (version 1.1)

plot,ms.image,missing-method: 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 ms.image,missing
plot(x, palette = "inferno")

Arguments

x

ms.image-class object. See msImage.

palette

string. Color palette. See viridis.

Examples

Run this code
# NOT RUN {
## 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)
# }

Run the code above in your browser using DataLab