# [R] expression + paste + arguments + ...

Spencer Graves spencer.graves at pdf.com
Fri Jul 30 03:15:11 CEST 2004

      I don't know latex, but have you looked at "?plotmath", including
'demo(plotmath)', the examples in the documentation, and an R site
search suggested in the posting guide
(http://www.R-project.org/posting-guide.html)?  What you want is
probably fairly easy, once you parse the "plotmath" documentation.  hope
this helps.  spencer graves

ivo_welch-rstat8783 at mailblocks.com wrote:

>
> dear R wizards:  I would like to write a function that roughly places
> the equivalent of the following latex text into the current plot:
>
>   \newcommand{ \placesigma }[4]{ \put(\#1,\#2){ \sigma_{A , #3} = #4 }
>
> I cannot figure out how to do this.  I know I have to use a function
> that uses expressions in a text() invoke.  But passing arguments and
> nesting strings and expressions has so far not worked for me.  I hope
> this is an obvious question---if not, please just tell me and I can
> give up.  help appreciated.
>
> sincerely,
>
> /iaw
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help