[R-sig-Geo] trouble with plotting maps in pdf

Barry Rowlingson b.rowlingson at lancaster.ac.uk
Mon Oct 25 18:56:43 CEST 2010


On Mon, Oct 25, 2010 at 5:39 PM, Ricardo Rodríguez
<ricardorodot02 at gmail.com> wrote:

>            print(spplot(Rmap1["var1.pred"], AXES = TRUE,
> col.regions=bpy.colors(20),xlab="E-O",ylab="S-N"),scales=list(draw=TRUE),main="map
> 1")

 First, spplot doesn't do AXES=TRUE, so I don't know where you got that from.

 Secondly, your 'main' and 'scales' parameter are outside your spplot call.

 print(
   spplot(
     Rmap1["var1.pred"],
     AXES = TRUE,
     col.regions=bpy.colors(20),
     xlab="E-O",ylab="S-N"
     ), # end of spplot
 scales=list(draw=TRUE),main="map 1"
) # end of print

Put them inside the right parenthesis and they'll work...

Barry



More information about the R-sig-Geo mailing list