matrixtoimage: Converts matrix back to image

Description Usage Arguments Value Author(s) Examples

Description

Using S3 qtlc object, extracts the matrix and converts to image plot.

Usage

1
2
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 show is TRUE, then defines background color. Default is "thistle".

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

1
2
3
4
5
6
# 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")

qtlc documentation built on May 1, 2019, 8:45 p.m.

Related to matrixtoimage in qtlc...