Is there an easier way to include a Greek letter mu in a ggplot2 figure legend (or title) within a knitr document? The usual knitr $\\mu$ is printed literally (without the duplicated backslash) within the ggplot2 figure. I also tried defining a phrase within the code block and then using that phrase within the ggplot function. But again the the $\\mu$ was printed literally (removing the duplicated backslash), not translated to the Greek mu. So apparently the $\\mu$ method doesn't work within a code block. I found a method that works defining a phrase within the code block using
expression(paste("Baseline insulin (", mu, "U/mL)"))
but this method would be cumbersome if one needed to use multiple Greek letters. Is there an easier way?
Thanks in advance for help with this!
Larry Hunsicker