[R] How do I change the tick text on the x-axis of a plot and rotate them 90 degree?

David Winsemius dwinsemius at comcast.net
Wed Mar 14 22:43:12 CET 2012


On Mar 14, 2012, at 5:30 PM, Michael wrote:

> How do I change the tick text on the x-axis of a plot and rotate  
> them 90
> degree?
>
>> labs
>
> [1] "[-0.185,-0.0997]" "(-0.0997,-0.0549]" "(-0.0549,-0.0293]"
>
> [4] "(-0.0293,-0.00948]" "(-0.00948,0.00534]" "(0.00534,0.0178]"
>
> [7] "(0.0178,0.035]" "(0.035,0.0566]" "(0.0566,0.0932]"
> [10] "(0.0932,0.183]"
>
> I want to be able to change the tick labels of the x-axis of the  
> following
> plot
>
> plot(1:10)
>
> to those texts in "labs"

?axis


> and rotate them 90 degree...

?par

It remains possible that you will learn to post from gmail in plain  
text _and_ to post your objects using dput.

-- 

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list