[R] Positioning of axis titles

Uwe Ligges ligges at statistik.tu-dortmund.de
Wed Aug 20 19:36:13 CEST 2008



Nicky Chorley wrote:
> Hi,
> 
> I have created a plot using filled.contour() and have the problem that
> one of the axis titles and an axis label are overlapping. I have tried
> changing par()$mgp (with, e.g. par(mgp=c(4,1,0)) ), but this just
> makes the title go off the screen. I can't work out how to make the
> plot take up less space in the window, so I can hopefully change mgp
> and sort the problem. Is changing mgp the only way to position axis
> titles/labels?

Increase the margins as well, default is:
   par("mar"=c(5,4,4,1)+.1)

Uwe Ligges


> Regards,
> 
> Nicky Chorley
> 
> ______________________________________________
> R-help at 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.



More information about the R-help mailing list