I want to plot names that come from a dataframe in italic as a ylab.
The solution at R plot: Using italics and a variable in a title does not work in this case.
Using substitute
or expression
R literally reads my code
e.g. substitute (paste 'Species = ', italic (rownames (genR) [i]))
will come out in the test as:
Species = rownames (genR)[1]
and I wanted
Species = Musa paradisiaca
Any advice?
Many thanks!
You could try
bquote
Update
Or using
substitute