plot,ms.image,missing-method {SPUTNIK} | R 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)
[Package SPUTNIK version 1.4.2 Index]