[R] Reading graphics files

drf5n@mug.sys.virginia.edu drf5n at mug.sys.virginia.edu
Tue Jun 24 20:26:42 CEST 2003


Is there a tool for reading a graphics file into an object?  I might not
be looking with the correct vocabulary, but I'm finding lots of references
to producing graphics from R, but not any for inputting graphics into R.

I'd like to use a jpeg image and have the data available in R for
analysis.  I could convert the image to another format, PPM perhaps, and
parse that in, GRASS seems like overkill for a small project, and reading
an image seems like something that someone else has probably already done.

Any pointers?

?png      # output only
?bitmap   # output only
help.search("ppm") |image|graphics|read|png|bitmap all seem like outputs
R-data.pdf points the way -- Has anyone imported a graphic file?

Thanks for your time,
Dave
-- 
 Dave Forrest    (434)924-3954w(111B) (804)642-0662h (804)695-2026p
 drf5n at maplepark.com            http://mug.sys.virginia.edu/~drf5n/




More information about the R-help mailing list