Welcome to the community!
Please check the documentation of plotmath, which can be accessed using ?plotmath.
I haven't used myself, but you can use latex2exp
. It's description says:
Parses and converts LaTeX math formulas to R's plotmath expressions, used to enter mathematical formulas and symbols to be rendered as text, axis labels, etc. throughout R's plotting system.
Hope this helps.