Liu.Chunhua@epamail.epa.gov
2003-Jan-14 23:36 UTC
[R] How to change the label position in axis() ?
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) -------------- next part -------------- A non-text attachment was scrubbed... Name: pic08925.pcx Type: application/octet-stream Size: 24125 bytes Desc: not available Url : https://stat.ethz.ch/pipermail/r-help/attachments/20030114/2a5e0b5e/pic08925.obj
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