dankelley/oce — Issue #188: plotInset() margin problems
Author: dankelley
Created: 2012-01-17 14:29:34+00:00
State: open
Labels: bug, plotting

The first of the tests below yields insufficient space if mar=NULL, but otherwise it takes up whole device. TRY: mimic the coastline code in the T-profile code.

library(oce)
data(ctd)
plot(ctd, which='TS')
plotInset(30, 4, 31, 8, expr=plot(ctd, which='temperature', mar=c(4,4,3,3)))
plot(ctd, which='TS')
plotInset(29.9, 2.8, 31.1, 9, expr=plot(ctd, which='map', coastline="coastlineMaritimes", span=250, mar=NULL))
plot(ctd, which='TS')
plotInset(29.9, 3.1, 31, 8, expr=plot(1:10, (1:10)^2))