[Rpy] Arguments to high-level plotting commands

2008-02-14 Thread marco hofmann
Hi there, I'm not familiar with R.. and use RPy to use the graphical features of R with Python. My problem is that passing arguments to plotting functions does not work in Python as in R. For example in R: > x<-c(1,2,3) > y=x > f<-c(1,2,3,4,5,6,7,8,9) > z<-array(f,dim=c(3,3)) > image(x,y,

Re: [Rpy] Arguments to high-level plotting commands

2008-02-14 Thread marco hofmann
Peter schrieb: > marco hofmann wrote: >> Hi there, >> I'm not familiar with R.. and use RPy to use the graphical features of R >> with Python. >> >> ... >> >>> rpy.r.image(x,y,z,axes=FALSE) >> >> Traceback (most recent call last)

[Rpy] r.predict()

2008-02-22 Thread marco hofmann
Hi all, I have a problem with the predict command. Here is an example: from rpy import * r.library("nnet") model = r("Fxy~x+y") df = r.data_frame(x = r.c(0,2,5,10,15) ,y = r.c(0,2,5,8,10) ,Fxy = r.c(0,2,5,8,10)) NNModel = r.nnet(model, data = df

Re: [Rpy] r.predict()

2008-02-23 Thread marco hofmann
formation, including the type of the original R object. > > To avoid this conversion add two lines to your code: > > > On Feb 22, 2008, at 12:36PM , marco hofmann wrote: > >> Hi all, >> I have a problem with the predict command. Here is an example: >> >>