6

I wish to write a single word in italic in the axis title of my graph using ggplot2. I am trying to write something like this: "The alpha-male percentage", where alpha is in italic.

I have tried the following within my plot code:

ylab(expression(paste("The", italic("alpha"),"-male percentage"))

yet "alpha" is still not in italic. Could someone help?

Psidom
  • 195,464
  • 25
  • 298
  • 322
ykl
  • 367
  • 1
  • 3
  • 12

0 Answers0