Skip to content
Prev 5290 / 29559 Next

Error in multiple && !outer : invalid 'x' type in 'x && y'

On Thu, 19 Mar 2009, Jim Burke wrote:

            
Please *do* run traceback() after error messages like these - it takes a 
very long time to try to guess where the error might have occurred. If 
traceback() is too hard, please make a minimal data set reproducing the 
problem available on a website, with a script to provoke the error. Here, 
bbox() of the objects would show the differences in extent.

Essentially, what you are saying is that plotting the non-overlapping 
names of census_block_sp on their label points messes up spplot of tx3_sp, 
right? The spplot() command works without the second component in the 
sp.layout= list? Have you tried assigning the colours in a regular plot() 
command manually, then using text() directly? If you can figure out what 
is going on in base graphics, the lattice graphics case will be resolvable 
too (usually).

Please avoid using the term "merge" - it has no meaning in this context. R 
spatial for vector data is not a GIS for doing topology, really. "Seeing 
what happens" with large and complex objects does look like a recipe for 
trouble, please simplify first as much as possible, and very often you 
will resolve the problem yourself (simplification does work like that, it 
helps you bring your needs closer to what the software is offering by 
removing irrelevant detail).

Hope this helps,

Roger