Search code examples
ritalics

italics and normal text in a main plot title


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.


Solution

  • 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.