plotmath provides mathematical expression plotting in the R language.
Arguments to the text plotting functions in r (text, mtext, axis, legend) accept both character and expression arguments. Character values are drawn to the plot as-is, while expressions are evaluated according plotmath rules. These rules differ from those for typical R expressions (see documentation).
 
     
     
     
     
     
     
     
     
     
     
     
     
     
    