You might have better luck with the rJava mailing list: http://mailman.rz.uni-augsburg.de/mailman/listinfo/stats-rosuda-devel <http://mailman.rz.uni-augsburg.de/mailman/listinfo/stats-rosuda-devel> Jamie Olson School of Computer Science Carnegie Mellon University 5000 Forbes Ave. Pittsburgh, PA 15213 jfol...@cs.cmu.edu
On Tue, Jun 14, 2011 at 6:23 AM, Mohed Alhammed <s.alham...@yahoo.com>wrote: > Up, Any helps in this would be really appreciated. I stuck with this. > Regards > > --- On Mon, 6/13/11, saleh [via R] < > ml-node+3593743-1399725529-244...@n4.nabble.com> wrote: > > From: saleh [via R] <ml-node+3593743-1399725529-244...@n4.nabble.com> > Subject: Calling R from Java > To: "saleh" <s.alham...@yahoo.com> > Date: Monday, June 13, 2011, 12:35 PM > > > > Dear Sir/Madam, > > Sorry for my previous message. I am to call R from java. I did a search > here and I found some recommendations telling me to use jri which comes with > rJava. I have managed to install the package successfully on my machine. I > also managed to run the default example rtest successfully. I tried to find > more tutorials or or examples,but I could not find any. I am trying to do > the following from the java class: > > > png('/home/saleh/figure13.png',height=480*5,width=480*5,res=72*5) > > y1 <- cumsum(rnorm(100)) > > y2 <- cumsum(rnorm(100, mean=0.2)) > > par(mai=c(.8, .8, .2, .8)) > > plot(1:100, y1, type="l", col="blue", xlab="X axis label", ylab="Left > legend") > > par(new=TRUE) > > plot(1:100, y2, type="l", ann=FALSE, yaxt="n") > > axis(4) > > legend(x="topleft", bty="n", lty=c(1,1), col=c("blue","black"), > > legend=c("String 1 (left scale)", "String 2 (right scale)")) > > dev.off() > > > These commands can be run correctly from the R command, but I am trying to > do that from a java class. > > > Any help would be really appreciated. > > > Regards, > > Saleh. > > > > > > > > If you reply to this email, your message will be added to > the discussion below: > > http://r.789695.n4.nabble.com/Calling-R-from-Java-tp3593743p3593743.html > > > > To unsubscribe from R, click here. > > [[alternative HTML version deleted]] > > > ______________________________________________ > 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. > > [[alternative HTML version deleted]] ______________________________________________ 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.