7

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
  • 209,562
  • 33
  • 339
  • 356
ykl
  • 397
  • 2
  • 3
  • 13

0 Answers0