Re: [R] vectorized plotmath expressions via substitute()

2012-11-18 Thread Uwe Ligges
On 15.11.2012 10:52, Gabor Grothendieck wrote: On Wed, Nov 14, 2012 at 12:05 PM, Murat Tasan wrote: hi all - i've seen versions of this question before, but none seem to get directly at my solving my (probably very simple) issue: i simply want to annotate the tick marks on an axis with (supe

Re: [R] vectorized plotmath expressions via substitute()

2012-11-15 Thread Gabor Grothendieck
On Wed, Nov 14, 2012 at 12:05 PM, Murat Tasan wrote: > hi all - i've seen versions of this question before, but none seem to get > directly at my solving my (probably very simple) issue: > > i simply want to annotate the tick marks on an axis with (superscripted) > 10^x notation, and tried this: >

Re: [R] vectorized plotmath expressions via substitute()

2012-11-14 Thread Murat Tasan
awesome, works perfectly. LISP-iness to the rescue. thanks much! -m On Wed, Nov 14, 2012 at 12:26 PM, William Dunlap wrote: > I recommend using bquote(), with its .() substitution operator, instead of > substitute any time you use plotmath.To make a vector of plotmath > expressions use the

Re: [R] vectorized plotmath expressions via substitute()

2012-11-14 Thread William Dunlap
I recommend using bquote(), with its .() substitution operator, instead of substitute any time you use plotmath.To make a vector of plotmath expressions use the following sort of as.expression(lapply(... bquote ...)) idiom: plot(1:10, axes=FALSE) at <- axTicks(1) lab <- as.expression(la