I am using expression() to create a string that includes greek letters. My legend label is as follows:
legend.label = paste(mu, "+", sigma, ", ", mu, ", ", mu, "+", sigma, " of
random strategy", sep ="")
This should give me something like: μ+σ, μ, μ+σ of random strategy, but instead I am getting this:
It seems as if there is an automatic space after the greek letters. I already tried using the * and ~ operator, but it didnt help. I am using the cairo package to create anti-anialised plots. However, without using the cairo package I seem to get the right result. Does anybody have an idea how to fix this? Thanks!
I don't know how you defined the "greek letters" but you can use the unicode to put them without space in your legend:
plot(0:1, 0:1, type="none", main="\U03BC+\U03C3, \U03BC, \U03BC+\U03C3 of
random strategy")