I am trying to remove the space between the top and bottom plots, but cannot find the parameters that I need to modify. I tried a few different things and thought I found my problem with map resetting the par(mar) parameters e.g., here, but this is not it!
See Figure:
Any idea. I want to have all these maps together (no space between the top 3 and 2 below), but would like to have only the bottom left map showing axes.
My code:
library(mapdata)#for "worldHires"
library(maps)
op<-par(mfcol=c(2,3),oma=c(0,2,0,0),mar=c(2,2,0,0))
for (j in 1:5){
map("worldHires", fill=T,xlim=c(-70,-55),ylim=c(66,71),col=c(gray(0.8),gray(0.6)),mar=c(0,0,0,0))
if (j==2){
map.axes()
}
else{
box(col = "black")
}
text(-56,66.5,paste(j),font=2,cex=1.5)
}
par(op)
par(mar = c(2,2,2,1))
or something similar would put you in the right direction methinks – rawr Sep 28 '14 at 22:29mai
parameter ofpar
? It might help. – Jealie Sep 28 '14 at 23:22