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
Try this:
legend_texts = expression( Omega^2, Omega*10) legend( "topleft" , legend = legend_texts , col = c(1:2) , pch = c(1:2) , lty = 1 )
I could not tell if you wanted Omega^10 or Omega*10 or Omega%*%10 , but they all would produce acceptable plotmath expressions.
Omega^10
Omega*10
Omega%*%10