Delphine COURVOISIER
2008-Sep-18 09:34 UTC
[R] Writing greek letters and subscripts in graph
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
Richard.Cotton at hsl.gov.uk
2008-Sep-18 09:51 UTC
[R] Writing greek letters and subscripts in graph
> 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.See FAQ 7.13 and ?plotmath for examples. Regards, Richie. Mathematical Sciences Unit HSL ------------------------------------------------------------------------ ATTENTION: This message contains privileged and confidential inform...{{dropped:20}}
"Delphine COURVOISIER" <Delphine.Courvoisier at hcuge.ch> wrote:> 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.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. -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are personal and not represented otherwise. * Any use of tradenames does not constitute a NOAA endorsement.