6

What should I do to have R correctly show in a legend the equivalent to this latex expression?

\alpha \leq \beta

The following commands handle \alpha and \beta correctly, but not the \leq symbol:

expression(paste(alpha, " leq ", beta))

expression(paste(alpha, " <= ", beta))
mossaab
  • 1,812
  • 4
  • 23
  • 44

1 Answers1

10

Just use

expression(alpha <= beta)

For more info check out

?plotmath
Dason
  • 60,663
  • 9
  • 131
  • 148