Sorry, guess I wasn't clear enough. The code is for example only--it works fine in R, but when sent across the R-(D)COM interface it does not work. I have tried with many of the lattice graphics and a few versions of R, but none work across the R-(D)COM interface. Again, the code will work fine in a "pure R" environment, but fails when passed over the COM interface.
Thanks Matt Spear [EMAIL PROTECTED] On Fri, Mar 28, 2008 at 5:33 PM, Erich Neuwirth <[EMAIL PROTECTED]> wrote: > I tthink you are adressing this question to the wrong list. > It is a "pure R" question, therefore you should post it on r-help. > > > > Matt Spear wrote: > > Hey, I cannot get any of the lattice library functions to work. An > > example R code is: > > > > library(lattice) > > xyplot(c(2,3,4,5,6) ~ c(1,2,3,4,5)) > > > > It works fine if xyplot is replaced by plot, so I feel strongly the > > problem is something to do with the lattice package. I have tried > > this with R version 2.6.1 and 2.5.0 and in both cases no plot is > > generated. I have also tried the following R code (dumping the plot > > to a file): > > > > postscript('test.ps', ) > > library(lattice) > > x <- seq(pi/4, 5 * pi, length = 100) > > y <- seq(pi/4, 5 * pi, length = 100) > > r <- as.vector(sqrt(outer(x^2, y^2, "+"))) > > grid <- expand.grid(x=x, y=y) > > grid$z <- cos(r^2) * exp(-r/(pi^3)) > > wireframe(z ~ x * y, grid, cuts=50) > > dev.off() > > > > which generates an empty ps file, again this works fine for > > non-lattice plots (e.g. plot), but fails for lattice plots. Sadly I > > cannot determine what is dying or where, the R code executes fine in > > R, but fails when sent over the R DCom interface... > > > > Any suggestions/help would be greatly appreciated. > > Matt Spear > > [EMAIL PROTECTED] > > _______________________________________________ > > Rcom-l mailing list > > Rcom-l@mailman.csd.univie.ac.at > > http://mailman.csd.univie.ac.at/mailman/listinfo/rcom-l > > More information (including a Wiki) at http://rcom.univie.ac.at > > > > > > -- > Erich Neuwirth, University of Vienna > Faculty of Computer Science > Computer Supported Didactics Working Group > Visit our SunSITE at http://sunsite.univie.ac.at > Phone: +43-1-4277-39464 Fax: +43-1-4277-39459 > _______________________________________________ > Rcom-l mailing list > Rcom-l@mailman.csd.univie.ac.at > http://mailman.csd.univie.ac.at/mailman/listinfo/rcom-l > More information (including a Wiki) at http://rcom.univie.ac.at > _______________________________________________ Rcom-l mailing list Rcom-l@mailman.csd.univie.ac.at http://mailman.csd.univie.ac.at/mailman/listinfo/rcom-l More information (including a Wiki) at http://rcom.univie.ac.at