Skip to content

two lines in axis title combined with 'substitute' command

4 messages · N.Hubner at ncmls.ru.nl, Uwe Ligges, David Winsemius

#
On 03.01.2013 15:00, N.Hubner at ncmls.ru.nl wrote:
You cannot. One way out is to use two calls to title(xlab=...., 
line=...), one for each line of the xlab title.

Best,
Uwe Ligges
#
On Jan 3, 2013, at 8:00 AM, Uwe Ligges wrote:

            
That has been my experience and I believe it is documented on the  
help(plotmath) page.
Another way would be with the use of the 'atop' function.

  substitute( atop(
          log[logbase]* ("Ratio L"/"H reverse"),
          italic("experiment 2")
                    ), list(logbase=logbase)
               )
Returns:

atop(log[2] * ("Ratio L"/"H reverse"), italic("experiment 2"))
#
Hi!

Thanks a lot for your help!
I now do have exactly the plot that I wanted!
(I also realized that I have to use the 'text' command outside of the plot function; beginners mistake :-)

Cheers,
Nina

______________________________________________

Dr. Nina Hubner
scientist quantitative proteomics

Dep. of Molecular Biology, Radboud University Nijmegen, The Netherlands
e-mail: n.hubner at ncmls.ru.nl
tel: +31-24-3613655

Visiting address:
NCMLS, Dept of Molecular Biology (route 274)
Geert Grooteplein 26/28
6525 GA Nijmegen
The Netherlands