+1 vote
in Programming Languages by (35.2k points)

I want to add Greek symbols (e.g., α, β) to the plot title. How to display these symbols in R? Is there any function for it?

1 Answer

+3 votes
by (45.3k points)
selected by
 
Best answer

You can use the expression() function to include Greek letters in titles and labels of R plots. If you want additional characters along with the Greek letters, you can use the paste() function.

Here is an example to show alpha and beta in the title of a histogram:

> points <- rnorm(100)

> hist(points, breaks = 10, main = expression(paste("display ", alpha/beta)))

greek letters in r plot 

Related questions

+5 votes
1 answer
+2 votes
1 answer
+3 votes
1 answer
+5 votes
1 answer
asked Sep 25, 2021 in Programming Languages by kush (35.2k points)
+5 votes
1 answer
asked Sep 16, 2021 in Programming Languages by praveen (45.3k points)

...