[R] shifting down ylab in a plot
Philipp Pagel
p.pagel at wzw.tum.de
Wed Nov 24 14:13:51 CET 2010
> I am trying to shift down the "ylab" of my plot but can't find how to do it.
> I tried to tune "mar" but it enable more room for the labels to be displayed
> but it does not move to "ylab" as I would like.
>
> Is there a way with "par" to shift down my "ylab" ??
There may be a simpler/more elegant way to do it, but this does what
you asked for:
# plot data omitting the ylab
plot(1:10,1:10, ylab='')
# add the ylab myself using flushleft (adj=0.0)
mtext('foo', side=2, line=3, adj=0.0)
cu
Philipp
--
Dr. Philipp Pagel
Lehrstuhl für Genomorientierte Bioinformatik
Technische Universität München
Wissenschaftszentrum Weihenstephan
Maximus-von-Imhof-Forum 3
85354 Freising, Germany
http://webclu.bio.wzw.tum.de/~pagel/
More information about the R-help
mailing list