Adding symbols to R text function


Hi Posit community.
Is there any way to use special symbols with "text" function in R. I want to use solid circles, upper and lower triangles within text function.

Would the {latex2exp} package help? Supported LaTeX commands

Hi @punkz
You can use the relevant Unicode characters to produce the required symbols in a text string E.g.

cat("This is an upper black triangle: \U25B2")

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.