Dear Jian, 
 
I would like help you but I need that you explain a little bit about what you really want. 
Sorry ask you again, but may be I don´t understood because my difficulties on english.
 
Anyway, try this:
 
require(akima)
x=runif(100,0,100)
y=runif(100,0,100)
dbh=runif(100,1,100)
rdata=data.frame(x,y,dbh)
rdata.interp<-interp(rdata$x, rdata$y, rdata$dbh)
image(rdata.interp)


Of course you can output to ASCGRID using adehabitat package
 
Kind regards,
 
miltinho
Brazil

----- Mensagem original ----
De: Jian Zhang <jzhang1982@gmail.com>
Para: R-help <r-help@stat.math.ethz.ch>; R_GEO <r-sig-geo@stat.math.ethz.ch>
Enviadas: Terça-feira, 11 de Dezembro de 2007 22:00:48
Assunto: [R] How to plot the grid figure using R?

Now I have the forest plot data with x, y locations, and I measured the DBH for every indivicuals.

The data looks like that:
x=runif(100,0,100)
y=runif(100,0,100)
dbh=runif(100,1,100)
rdata=data.frame(x,y,dbh)
> rdata[1:5,]
          x        y      dbh
1 99.5354145  1.412844 34.10112
2  0.8259361 87.737036 39.12914
3  6.5678613 65.699032 22.55990
4 67.2987881 72.053877 45.83978
5  2.2491372 23.622898 68.77065

My question is: How can I plot the grid (25～25,5～5,...) figure by DBH?
Can you introduce a simply method to do it by R language? I know that it can be done very easy by the software ArcGis.

　　　　
　　　　
　　　　
　　　　


Thanks very much.

    [[alternative HTML version deleted]]




-----Anexo incorporado-----

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.







armazenamento!



 para armazenamento!

	[[alternative HTML version deleted]]

