[R] axis title on two lines

John Kane jrkrideau at yahoo.ca
Tue Oct 30 14:56:56 CET 2007


You might want to replace the xlab with mtext? 

aa <- 1:10
plot(aa, xlab='')
mtext("label one \n label number two" , side=1,
line=3)


--- Marcel Sandow <msandow at ifm-geomar.de> wrote:

> Hello,I am searching for the possibility to make a
> two lines axis title. This
> suggestion:ylab=expression(paste("log rate\n[
> fluor.",inc. %.% cell^{-1} %.% sec^{-1},"
> ]"))results in two lines left not centered and with
> a large gap.any suggestions.ThanksMarcel 
> 
>
______________________________________________________________________________
> 
> Marcel Sandow
> 
> Leibniz Institute of Marine Sciences - IFM-Geomar
> Experimental Ecology: Foodwebs
> Düsternbrooker Weg 20
> 24105 Kiel
> Germany
> 
> Fon: +49-431-600-4404
> Fax: +49-431-600-1515
> 
> Homepage: http://www.ifm-geomar.de
> E-mail: msandow at ifm-geomar.de
> 
> 
> 
> 	[[alternative HTML version deleted]]
> 
> > ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained,
> reproducible code.
>



More information about the R-help mailing list