[R] image usage

Kris Nackaerts kris.nackaerts at agr.kuleuven.ac.be
Sat Oct 11 10:52:07 CEST 2003


Suppose your data is in image.txt, space delimited (one or more spaces),

then you could use:

myimage <- 
as.matrix(read.table('image.txt',skip=0,header=FALSE,sep="",strip.white=TRUE))to 


view the resulting image use:

image(myimage)

to get contours: contour(myimage)
etc.

-- 
------------------------------------------------------------------------

 http://perswww.kuleuven.ac.be/~u0027178/VCard/mycard.php?name=krisn

 http://gloveg.kuleuven.ac.be/

------------------------------------------------------------------------
 Minds are like parachutes, they only work when open




More information about the R-help mailing list