Lionel Roubeyrie wrote:
> Thanks for your help, 
> I directly use the sp module for creating points, it's more elegant than 
> using 
> assignment.
> Now, I can krige my datas in Rpy, it's fun, but I don't understand why can I 
> plot some graphics, and others not :
> ########################
> from rpy import *
> r.library("gstat")
> set_default_mode(NO_CONVERSION)
> df=r.data_frame(x=x, y=y, conc=conc)

What are x, y and conc? I don't have enough information to reproduce the 
problem.

> ...
> g=r.gstat(id='conc', formula=r('conc~1'), data=sp_df)
> v=r.variogram(g, alpha=r.c(0,45,90,135))
> #r.plot(v) # <== Doesn't work, returns the address of the R object
> ########################################
> How can I make the variogram plot, it's the most important?

I'm not sure.  One guess is that this is a lattice plot, so you need to 
explicitly print it in RPy.  See:

http://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-do-lattice_002ftrellis-graphics-not-work_003f

Note that "print" is a reserved word in python, so you must use 
rpy.r.print_(...) instead of rpy.r.print(...)

Peter

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to