[R-sig-Geo] Error in multiple && !outer : invalid 'x' type in 'x && y'

Jim Burke j.burke at earthlink.net
Thu Mar 19 07:16:54 CET 2009


A partial answer. plot() these separately shows
they plot at vastly different dimensions in order
to fill the plot frame.

I will try a merge in R and see what happens.

Thanks,
Jim

Jim Burke wrote:
> Thanks in advance everyone. I need assistance
> resolving the above error. Trying to spplot join
> or merge two "SpatialPolygonsDataFrame"s
>
> Each set of polys will plot adjacent to each other.
> They do not overlap.
>
> census_block_sp <- readShapePoly("HD_108_blocks_sp.shp", 
> IDvar="BLKIDFP", proj4string=CRS("+proj=aea +ellps=GRS80 +datum=WGS84"))
> tx3_sp <- readShapePoly("HD_108_whole_sp.shp", IDvar="PCT", 
> proj4string=CRS("+proj=aea +ellps=GRS80 +datum=WGS84"))
>
>
> spplot(tx3_sp, c("D_TOT"),
>    colorkey=list(height=1.0, width=0.6),
>    main = list(label="HD-108 - Barack Obama \n Votes by Precinct 
> 11/04/08",cex=1),
>    sub =  list(label="by Jim Burke, j.burke at earthlink.net",cex=.3),
>    line=0,
>    sp.layout = list("sp.text",coordinates(tx3_sp),
>                    as.character(tx3_sp$PCT,cex = .02),
>                    as.table = TRUE),
>                list("sp.text", coordinates(census_block_sp),
>                    as.character(census_block_sp$NAME, cex = .02),
>                    col='blue')     )
>
> Error in multiple && !outer : invalid 'x' type in 'x && y'
>
> Thanks,
> Jim Burke
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
>



More information about the R-sig-Geo mailing list