Skip to content
Prev 157151 / 398506 Next

grid.newpage()

Sorry but this is not printing both graphs in the same window and I can't
figure why.

grid.newpage()
par(cex.axis=0.85,cex.lab=0.80,mai=c(1.3,1,0.5,0),las=3)
pushViewport(viewport(layout=grid.layout(1,2)))
pushViewport(viewport(layout.pos.row=1,layout.pos.col=1))
print(
bplot<-barplot(bar.values,width=0.5,ylab="% Area held",names.arg=cf.names),
abline(h=0.3,lty=3,col="red"),
abline(h=0.1,lty=3,col="blue"),
points(bplot,target$target/xi[nrow(xi),],pch=20),
text(bplot,target$target/xi[nrow(xi),],paste(target$target,"ha"),adj=c(-0.3,
0.5),cex=0.70,srt=90)
)
popViewport()
#pushViewport(viewport(layout=grid.layout(1,2)))
pushViewport(viewport(layout.pos.row=1,layout.pos.col=2))
print(barplot(xi[c(floor(327/4),floor(327/2)),c(2,5,11)],
names.arg=c("Coral","Mangrove","Seagrass"),
las=3))
Message-ID: <!&!AAAAAAAAAAAYAAAAAAAAAAiqk/5CNPFFq17hx4jN18vCgAAAEAAAANj9SRtfx+hFnJYo+ULHdGMBAAAAAA==@netcabo.pt>
In-Reply-To: <!&!AAAAAAAAAAAYAAAAAAAAAAiqk/5CNPFFq17hx4jN18vCgAAAEAAAAJum2wWnABhInLehxf0VqVYBAAAAAA==@netcabo.pt>