matrixtoimage {qtlc} | R Documentation |
Converts matrix back to image
Description
Using S3 qtlc object, extracts the matrix and converts to image plot.
Usage
matrixtoimage(object, show = TRUE, bkg = "thistle", axes = FALSE,
xlab = "", ylab = "", ...)
Arguments
object |
S3 object of working TLC. |
show |
Boolean, default TRUE. Shows the plot of the image. |
bkg |
If |
axes |
Boolean, default FALSE. Shows x,y axes if TRUE. |
xlab |
Label of the x-axis. |
ylab |
Label of the y-axis. |
... |
Additional graphical parameters. |
Value
Returns image as matrix suitable for plot
, or other graphics functinos.
Author(s)
Ivan D. Pavicevic, ivanp84@gmail.com
Examples
# Converts test image to matrix,
# then matrix back to image.
fname01 <- system.file("extdata", "testTIFF.tiff", package="qtlc")
testTLC <- createTLC(fname01, RGB=FALSE)
print(testTLC)
matrixtoimage(testTLC, bkg="white")
[Package qtlc version 1.0 Index]