[R] how to add a variable to a graph title

mlell08 mlell08 at gmail.com
Fri Jul 13 10:13:36 CEST 2012


To use variables in mathematical expressions, bquote can be used:

#Term in in .( ) is evaluated
plot(1:10,main=bquote(frac(alpha,.(2+2))))


-- 
GnuPG Key: 0x7340821E



More information about the R-help mailing list