[R-sig-Geo] Problem with Sweave and spplot

Dylan Beaudette debeaudette at ucdavis.edu
Wed Sep 2 19:02:58 CEST 2009


Hi,

Could this be an issue with the way in which lattice graphics behave 
when 'sourced' from a script file? If so, then something like this may help:

p <- spplot(...)
print(p)

Cheers,
Dylan

On Tuesday 01 September 2009, Els Ducheyne wrote:
> Dear all
> I faced the same problem, spplot does not create the output that
> sweave will integrate
> I solved this by manually saving the spplot outputs and then hard code
> it in the tex file,  but clearly there should be a better way
>
> Els
>
> On 1 Sep 2009, at 17:01, Matthieu Stigler wrote:
> > Hi
> >
> > I'm facing problems using Sweave with spplot... there is no error
> > message but the pdf produced has errors and then latex compilation
> > fails... I really don't know where that come from, did anyone
> > experience something similar?
> >
> > I've put the file on the net:
> > -the Sweave file:
> > http://s000.tinyupload.com/download.php?file_id=06883775011103568715&t=06
> >88377501110356871533520 -the map data:
> > http://s000.tinyupload.com/download.php?file_id=77859174637181270102&t=77
> >85917463718127010263143
> >
> > So after downloading oe should just run:
> > R
> > Sweave("WorkingPaper2.Rnw.txt")
> >
> > Would you be so nice to test it and tell further:
> > -Do you have errors?
> > -Is Sweave running but not providing pdf not working?
> >
> > Thanks a lot
> >
> > Matthieu Stigler
> >
> > _______________________________________________
> > R-sig-Geo mailing list
> > R-sig-Geo at stat.math.ethz.ch
> > https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo



-- 
Dylan Beaudette
Soil Resource Laboratory
http://casoilresource.lawr.ucdavis.edu/
University of California at Davis
530.754.7341



More information about the R-sig-Geo mailing list