Skip to content

Writing greek letters and subscripts in graph

2 messages · Delphine COURVOISIER, Mike Prager

#
Dear R-users, 

I would like to write Greek letters followed by subscripts in a graph (on the X-axis and in a legend). I would appreciate any help.

thank you,

delphine courvoisier

************************************
Delphine Courvoisier
Clinical Epidemiology Division
University of Geneva Hospital
+4122 37 29029
#
"Delphine COURVOISIER" <Delphine.Courvoisier at hcuge.ch> wrote:

            
As others have said, try 

demo(plotmath) and also 

? plotmath

Here's a brief example:

plot(1:10, 1:10)
title("Concentration of" ~alpha[3])
text(2,3, ~ beta[z])

Note the use of "~" to denote an expression, so that the
material following the tilde is interpreted as such.