I'm making plots in R, and I want my title to show the species name in italics (e.g. Sterna hirundo) when I run a loop. This is the code I've tried to use.
title(expression(italic(specieslist[i])))
All this does is print specieslist[i]
. How can I get it to print the actual species name?
Thanks