Latex expression in legend R

What should I do to make R display correctly in a legend equivalent to this latex expression?

\alpha \leq \beta 

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

 expression(paste(alpha, " leq ", beta)) expression(paste(alpha, " <= ", beta)) 
+4
source share
1 answer

Just use

 expression(alpha <= beta) 

For more information

 ?plotmath 
+7
source

Source: https://habr.com/ru/post/1480808/


All Articles