[R] Values in horizontal versus vertical position on 'y' axe

Gavin Simpson gavin.simpson at ucl.ac.uk
Mon Aug 13 13:58:00 CEST 2007


On Mon, 2007-08-13 at 13:37 +0200, akki wrote:
> hi,
> When I do a graph. the values on y axe are vertical position. How can I put
> the values in horizontal position?
> 
> thanks

If you mean "How do I rotate the tick labels?" then look at ?par and
parameter 'las'. E.g. this shows the options available:

opar <- par(mfrow = c(2,2))
plot(1:10, main = expression(las == 0)) ## las = 0, default
plot(1:10, las = 1, main = expression(las == 1))
plot(1:10, las = 2, main = expression(las == 2))
plot(1:10, las = 3, main = expression(las == 3))
par(opar)

If not, try rephrasing your question, and provide an example of what you
can plot at the moment and what is wrong with it that you'd like to
change.

HTH

G

-- 
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
 Gavin Simpson                 [t] +44 (0)20 7679 0522
 ECRC, UCL Geography,          [f] +44 (0)20 7679 0565
 Pearson Building,             [e] gavin.simpsonATNOSPAMucl.ac.uk
 Gower Street, London          [w] http://www.ucl.ac.uk/~ucfagls/
 UK. WC1E 6BT.                 [w] http://www.freshwaters.org.uk
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%



More information about the R-help mailing list