plot.matrix {rtiff} | R Documentation |
This is a simple overloader for the plot function which takes a matrix, converts it to and RGB pixmap (by replicating it 3 times, once for each channel), and then plotting the resulting image.
plot.matrix(x, ...)
x |
A matrix representing an image raster. |
... |
Additional arguments to send to plot. |
None.
Eric Kort <eric.kort@vai.org>
library(rtiff) tif <- readTiff(paste(.path.package("rtiff"), "/tiff/jello.tif", sep="")) #note the overload...specifying plot.matrix is not necessary. plot(tif@red)