Hi I have created a set of 4 barplots using mfrow=c(2,2) and need to add a heading that spans the margin of the bottom 2 graphs. I have used locator(1) to find the coordinates but I dont seem to be able to add text anywhere on this multiplot. I would be really grateful if anyone could tell me if there is a simple method of achieving this. Many thanks Sam Jones -- View this message in context: http://r.789695.n4.nabble.com/Adding-text-to-a-multiplot-via-mfrow-tp3065850p3065850.html Sent from the R help mailing list archive at Nabble.com.
On 2010-11-30 09:40, smj_115 wrote:> > Hi > > I have created a set of 4 barplots using mfrow=c(2,2) and need to > add a heading that spans the margin of the bottom 2 graphs. > > I have used locator(1) to find the coordinates but I dont seem to be able to > add text anywhere on this multiplot. > > I would be really grateful if anyone could tell me if there is a simple > method of achieving this. >You probably want to look at ?mtext and especially its arguments 'outer', 'side', 'adj' and 'line'. But make sure that there's enough space in the margin with par(oma = c(....)). Peter Ehlers> Many thanks > > Sam Jones
Hi Peter Many thanks. I will have a go with that and see if I have any joy. Your advice is much appreciated. Sam -- View this message in context: http://r.789695.n4.nabble.com/Adding-text-to-a-multiplot-via-mfrow-tp3065850p3067003.html Sent from the R help mailing list archive at Nabble.com.