Displaying 2 results from an estimated 2 matches for "tm_world_borders_simpl".
2009 May 13
1
Overlaying two plots
Hi useR's,
I want to overlay an image plot over a world map and I can do it, but just
not the way I need to do it. Here is the code I am using (with data file
attached) to create my baseline map:
library(sp)
load("TM_WORLD_BORDERS_SIMPL-0.2.RData")
par(bty="l")
plot(wrld_simpl, axes = TRUE, ylim = c(-90, 90), xlim=c(-180, 180), asp=1.5)
lim <- par("usr")
abline(v=-180, h=90, col="red") #Image plot needs to be inside this square#
abline(v=180, h=-90, col="red")
The last two statemen...
2009 Apr 06
1
political maps world maps in R, wrld_simpl
...ry and wrld_simpl I can easily perform the world
map. Here my code:
#########################################################
### plot the world map
patramp = colorRamp(c(rgb(0,0,.7),"red"))# my personal ramp color palette
library(maptools)
load(url("http://spatial.nhh.no/R/etc/TM_WORLD_BORDERS_SIMPL-0.2.RData"))
country2 = c("Albania", "Argentina", "Australia", "Austria", "Belgium",
"Belarus", "Brazil", "Bulgaria", "Canada", "China", "Colombia",
"Croatia", "Denm...