I want to store formatted legend texts in an array.
normFactor= c(1e-1, 1e-2, 1e-3)
legend_text[1] = bquote(mu ~ "=" ~ .(normFactor[1]))
legend_text[2] = bquote(mu ~ "=" ~ .(normFactor[2]))
legend_text[3] = bquote(mu ~ "=" ~ .(normFactor[3]))
The bquote-output seems to be of the type language
:
str(bquote(mu ~ "=" ~ .(normFactor[3])))
language mu ~ "=" ~ 0.001
So I thought I could set up an array of language-Elements:
legend_text = language()
Unfortuantely this does not work, and I'm wondering how I can store those elements in a array,...