Use sub-/superscript and special characters in legend texts of R plots
问题 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 like to generate the legend-texts in a loop. Bquote works fine, if there is only one legend text. If I try to add additinal legend texts, the plotmath-commads get lost,... x <- 0:10 y1 = x * x y2 = x * 10 plot (1,1, type="n", xlab=bquote(Omega), ylab="Y", las=1, xlim=range(x), ylim=range(y1, y2)) lines(x, y1, col=1, pch=1,