I generate a plot for multiple datasets. Each of the datasets should get it\'s own legend, which might contain greek letters, plotmath symbols or sub and superscrition. I\'d lik
Change "legend_texts" to:
# generate legend texts (in a loop)
legend_texts = c(
as.expression(bquote(Omega^2))
, as.expression(bquote(Omega%*%10))
)
From the help page for ?legend
, the "legend" argument is described as:
a character or expression vector. of length ≥ 1 to appear in the legend. Other objects will be coerced by as.graphicsAnnot.
Output: