[R] How to change the label position in axis() ?
Ben Bolker
ben at zoo.ufl.edu
Tue Jan 14 23:42:09 CET 2003
See ?par, the source of all wisdom:
par(las=1)
On Tue, 14 Jan 2003 Liu.Chunhua at epamail.epa.gov wrote:
>
> Dear R People,
>
> I'm working on a plot function to produce the graph shown below. One of
> the features my supervisor does not like is that the labels in the Y-
> axix are shown vertically. Is there a way to change that to horizontally
> ?
>
> This is the axix() function I used :
>
> axis(2,at=seq(nstrat),labels=snames)
>
> The labels (snames) are: SEV1:HU:C, SEV1:MU:C, SEV1:MU:L, SEV1:RT:C
> and SEV1:RT:L, due to space limitation just 3 of the labels are shown in
> the axix.
> In Splus, I believe the labels are shown horizontally be default. What
> we want is to show them horizontally in R too. Is there a way to do it ?
>
> I studied help(axix) document, and did not see a way to do it.
>
> THanks for the help
>
>
> Charlie Liu
> Graduate Intern at US EPA
>
>
> (Embedded image moved to file: pic08925.pcx)
--
318 Carr Hall bolker at zoo.ufl.edu
Zoology Department, University of Florida http://www.zoo.ufl.edu/bolker
Box 118525 (ph) 352-392-5697
Gainesville, FL 32611-8525 (fax) 352-392-3704
More information about the R-help
mailing list