italics and normal text in a main plot title

user3170629 picture user3170629 · May 31, 2014 · Viewed 80.1k times · Source

I am plotting a graph in R but the italics function and it is being pretty frustrating under the main title:

Mapped territories of different C. austriacus individuals at the Far Gardens coral reef site

Any help would be appreciated.

Answer

rischan picture rischan · May 31, 2014

You didn't give any information about your data but if the problem is italics in the title, maybe this code could help:

plot(rnorm(100), main = substitute(paste(italic('p value'), " = 0.01")))

enter image description here

See also this question.