Skip to content
Prev 10371 / 29559 Next

Adding a scale bar and north arrow to a ggplot

On Wed, 15 Dec 2010, Paul Hiemstra wrote:

            
Paul,

If it was added to sp, sp would depend on ggplot2 and its dependencies, 
which are quite extensive, and include a circularity, because ggplot2 
suggests maptools, which in turn depends on sp. Consequently, sp is not a 
good idea. It might even make sense to split sp into sp with just classes 
and methods, and spViz for vizualisation methods, but changing things now 
is a bit late!

It will be cleaner to try to establish the mapping functionality that uses 
ggplot2 and sp as a separate package. Maybe Hadley would see this as a 
sensible development. There are already two supplements to ggplot2 on 
R-forge, but both moribund, I think, which suggests that this needs 
thinking through.

Roger