Thanks. The solution i have been persuing is reading Murrell - and trying to figure out grid / Viewport commands. Is it best to stay in the base graphics package if possible?
Sent from my iPad On 04/06/2012, at 6:20 AM, Sarah Goslee <sarah.gos...@gmail.com> wrote: > On Sun, Jun 3, 2012 at 4:05 PM, Matthew Johnson <mcoog...@gmail.com> wrote: >> Thanks. So i can call par after the layout command? I did not realise. > > Some par options are set by calling par() directly, while others must > be included in the plot command itself. > > Sarah > >> Sent from my iPad >> >> On 03/06/2012, at 9:42 PM, Sarah Goslee <sarah.gos...@gmail.com> wrote: >> >> >> >> On Sunday, June 3, 2012, Matthew Johnson wrote: >>> >>> Sir, >> >> >> I'm no sir, but you need to spend some quality time reading ?par to lean >> abot axes and margins. >> >> Sarah >> >>> >>> I would like to create a combined line-bar plot, with the line up top and >>> bar plot below, but with the x-axes suppressed on the topmost plot, the >>> line and bar plot areas joined by a common line, and the x-axes (of dates) >>> joined to the bottom part of the bar plot. >>> >>> i have been able to format the area using the layout(matrix( ... commands, >>> but cannot figure out the final step. >>> >>> here's the code so far: >>> >>> >>> layout(matrix(c(1,2), 2, 1, byrow=TRUE), widths=c(3,3), heights=c(2,1)) >>> plot(saDwlPx[,1]) >>> barplot(saDwlMoM[,1]) >>> >>> thanks + best regards >>> >>> matt johnson >>> >> >> -- >> Sarah Goslee >> http://www.stringpage.com >> http://www.sarahgoslee.com >> http://www.functionaldiversity.org > > > > -- > Sarah Goslee > http://www.functionaldiversity.org ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.