[R] need help with axis ticks

Uwe Ligges ligges at statistik.tu-dortmund.de
Mon Jan 9 17:24:40 CET 2012


See ?par and its argument mgp,

e.g.:

par(mgp=c(3, 0.5, 0))


Uwe Ligges



On 08.01.2012 20:13, vibhava wrote:
> hi,
>   i am using par(mrow=c(6,6)) function to get 6x6 plots on one screen. the
> problem that i am having is that the axis tick labels are far away from the
> ticks and going into previous plots (see attached figure). i need to know
> how can i reduce the distance between the ticks and their values (y axis
> values).the part of the code that i am using (after reading in the data) to
> create the top row is:
>
> par(mfrow=c(6,6), oma=c(4,4,3,1), mar=par()$mar*0.25, family="serif",font=1)
>
> plot(flow1500,scf1500, type="p", xaxs="i", yaxs="i", xaxt = 'n',xlim =
> c(0,300), ylim=c(0,0.6))
> plot(flow1500,ph1500, type="p", xaxs="i", yaxs="i", xaxt = 'n',xlim =
> c(0,300), ylim=c(0,10))
> plot(flow1500,toc1500, type="p", xaxs="i", yaxs="i", xaxt = 'n', xlim =
> c(0,300), ylim=c(0,46))
> plot(flow1500,alk1500, type="p", xaxs="i", yaxs="i", xaxt = 'n', xlim =
> c(0,300), ylim=c(0,280))
> plot(flow1500,ca1500, type="p", xaxs="i", yaxs="i", xaxt = 'n', xlim =
> c(0,300), ylim=c(0,75))
> plot(flow1500,tds1500, type="p", xaxs="i", yaxs="i", xaxt = 'n', xlim =
> c(0,300), ylim=c(0,470))
>
> any help would be appreciated.
>
> regards
>
> vibhava
> http://r.789695.n4.nabble.com/file/n4276465/problem_figure.jpeg
> problem_figure.jpeg
>
> --
> View this message in context: http://r.789695.n4.nabble.com/need-help-with-axis-ticks-tp4276465p4276465.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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