user3170629 user3170629 - 3 months ago 30
R Question

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.


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.