Sorry, the inteded data.frame is to be like this: X Y VALUE 2 8 4 4 8 5 6 8 5 8 8 6 2 10 2 4 10 3 6 10 4 8 10 5 2 12 3 4 12 6 6 12 7 8 12 4
----- Missatge original ----- De: PEP Serra Diaz <josep.se...@uab.cat> Data: Divendres, Setembre 17, 2010 1:16 pm Assumpte: Beginners question: From text-raster to grid / map > > Dear R-SIGers, > > I would like to know which function to use in order to plot a map. > > I know my origin of coordinates (x=2,y=8), and my resolution (2) > > And I have an ASCII/txt file as an output matrix > > 3 6 7 4 > 2 3 4 5 > 4 5 5 6 > > I would like to plot a map for these values and/or alternatively > get a table like that (in other words, assign coordinates to each > value of the text.file (matrix)) > > > Thanks, > > Pep > _______________________________________________ R-sig-Geo mailing list R-sig-Geo@stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-geo