You ought to be able to read that using readGDAL (rgdal) which will
return you a SpatialGridDataFrame.  You then have methods for image and
spplot that will work:


## NOT TESTED:
library(rgdal)
asc <- "file.asc"  ## or whatever it is
g <- readGDAL(asc)

summary(g)

image(g)

## OR
spplot(g)


==============Original message text===============
On Tue, 19 Jun 2007 5:29:35 +1000 Thomas Szegvary wrote:

sorry for spamming all of you with my problems...but here's another one:

I have ascii grids from ESRI ArcGIS in the following format:
ncols         42
nrows         36
xllcorner     -10.311630235357
yllcorner     35.110501339805
cellsize      1
NODATA_value  -9999

Is there an already existing comand to plot that type of grid? or do I have to
(re)define the grid?

Thanks a lot for any help
Thomas

--
Thomas Szegvary
Environmental Geosciences
University of Basel
Bernoullistrasse 30
CH-4056 Basel
Switzerland

Tel. ++41-61-267 04
Fax. ++41-61-267 04 79

_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-geo

===========End of original message text===========



If it wasn't backed-up, then it wasn't important. ~ Anon sysadmin

Mike Sumner (Phd. Candidate)
http://www.antcrc.utas.edu.au/~mdsumner/ http://www.zoo.utas.edu.au/awru/  IASOS/AWRU
University of Tasmania
Private Bag 80
Hobart Tasmania 7001
AUSTRALIA
Email: mdsumner@utas.edu.au 
Phone: 03 6226 1752 (W)
       0408599921   (M)
Fax:   03 6226 2745


