

   PPoorrttaabbllee GGrraayymmaapp IImmaaggeess

        read.pgm(file)
        write.pgm(pgmobj, file="Rimage.pgm", forceplain=FALSE)
        plot(pgmobj, xlab=NULL, ylab=NULL, axes=FALSE, ...)

   AArrgguummeennttss::

     pgmobj: an object of class `pgm'

       file: name of the pgm file

   forceplain: If `TRUE', an ASCII pgm file is written. Default
             is to write a binary (raw) pgm file.

   DDeessccrriippttiioonn::

        `read.pgm' reads a pgm file and loads the image into an
        object of class `pgm', which is basically a matrix.
        `write.pgm' writes an object of class `pgm' to a file.

        `plot.pgm' plots a pgm object using the command
        `image'. The only difference is that the element
        `[1,1]' of `pgmobj' is plotted as the upper left corner
        (plain `image' would plot `[1,1]' as the lower left
        corner.

   VVaalluuee::

        `read.pgm' returns an object of class `pgm'. The maxi-
        mum gray value (corresponding to the color black) is
        stored as attribute `"maxval"').

   AAuutthhoorr((ss))::

        Friedrich Leisch

   SSeeee AAllssoo::

        `image'

