[R] how to move x-axis labels down
Wittner, Ben
Wittner.Ben at mgh.harvard.edu
Mon Jan 31 23:00:57 CET 2005
Bert,
Your question below prompted me to run the same code to the postscript device
and sure enough, the file created displays perfectly. So I guess the problem is
specific to my system and I should not try to fix it by changing my code.
My system is as follows:
platform i686-pc-linux-gnu
arch i686
os linux-gnu
system i686, linux-gnu
status
major 2
minor 0.1
year 2004
month 11
day 15
language R
Thanks.
-Ben
> -----Original Message-----
> From: Berton Gunter [mailto:gunter.berton at gene.com]
> Sent: Monday, January 31, 2005 4:49 PM
> To: Wittner, Ben
> Subject: RE: [R] how to move x-axis labels down
>
> I have no such problem on Windows, R2.01. What system and version are you
> on?
>
> -- Bert Gunter
> Genentech Non-Clinical Statistics
> South San Francisco, CA
>
> "The business of the statistician is to catalyze the scientific learning
> process." - George E. P. Box
>
>
>
> > -----Original Message-----
> > From: r-help-bounces at stat.math.ethz.ch
> > [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Wittner, Ben
> > Sent: Monday, January 31, 2005 1:33 PM
> > To: 'r-help at lists.R-project.org'
> > Subject: [R] how to move x-axis labels down
> >
> > Hi,
> >
> > In the code below, the labels I put on the x-axis are too
> > high (they cross the
> > axis). Can anyone tell me how to move them down? I've tried
> > adj=, padj=, mar=,
> > and various other things, but cannot move them down.
> >
> > Thanks.
> >
> > -Ben
> >
> > labs <- paste('sample', 1:10)
> > plot(1:10, xaxt='n', xlab='')
> > axis(1, at=1:10, labels=labs, padj=1, las=2) # las is a
> > par() parameter
> >
> > ______________________________________________
> > R-help at stat.math.ethz.ch mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide!
> > http://www.R-project.org/posting-guide.html
> >
More information about the R-help
mailing list