[R] how to read individual values from a pixmap object

Ben Bolker bolker at ufl.edu
Thu Aug 4 22:24:56 CEST 2005


Tony Gill <t.gill1 <at> uq.edu.au> writes:

> 
> Hi All,
> 
> I have a greyscale image that I am reading in through RGDAL and placing in a
> pixmap object.
> 

> 

library(pixmap)
x <- read.pnm("graypic.pnm")
str(x)
x at grey[1,1]




More information about the R-help mailing list