mirror.matrix: Mirrors a matrix upside-down. Used in re-arranging image...

Description Usage Arguments Value Author(s) See Also Examples

Description

Mirrors a matrix upside-down. Used in re-arranging image data for plotting properly in R.

Usage

1

Arguments

x

A matrix corresponding to raster or image data.

Value

Returns a matrix

Author(s)

Glenn J Tattersall

See Also

flip.matrix rotate90.matrix rotate270.matrix rotate180.matrix

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
## The function is currently defined as
function (x) 
{
    xx <- as.data.frame(x)
    xx <- rev(xx)
    xx <- as.matrix(xx)
    xx
  }
  

# flir<-palette.choose("flir")
# par(mfrow=c(2,1),mar=c(1,1,1,1))
# r<-c(1:100,rnorm(1:100)*10,1:100)
# m<-matrix(r,50)
# image(m, axes=FALSE, col=flir)
# box()
# text(.5,.5,"Matrix",col="white")
# mf<-mirror.matrix(m)
# image(mf,axes=FALSE,col=flir)
# box()
# text(.5,.5,"Mirror",col="white")


Search within the Thermimage package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.