How to draw the same legend (one legend) forthe
multiple spatial figures?
I would put the legend next to the upper-most plot and
wrap the whole thing in a single
/figure
so that it would be more obvious that the same legend applied to all.
Hi Roger,
you're correct in pointing out that the code would much more work to be
incorporated in the spdep library. This is something that Rogerio and I are
considering to do in the next few months as both of us find more time in
our agendas.
Thank you again for the discussion. The amount of
Dear Brandon and Wei,
I don't know the answer to your question but a somewhat similar solution
is when you plot a separate legend using lattice::draw.key() and disable
sp::spplot()'s built-in legend using argument "auto.key = FALSE".
An example:
# loading libraries
library(lattice)