I'm tryin to create a text in box-plot to depict significance. I'd like to have "P" with italics and bold, that follows e.g., "= 1.23e-02" just using bold. I'm doing this inside a loop so that the significance should come from a value of an object. Trying to plot 8 figures into a pdf so in every plot the significance is different and thus is located in the object/vector. I've tried for example:
text(x=2.8, y=maxy+(((maxy-miny)/5)/5)*1.1, bolditalic(P)~bold("=")~bold(format(tp12[i])), cex = 2.8)
But for some reason this does not return the value of the object (significance) but rather just the string inside it. I've also tried number of different solutions with bquote and substitute with no success.
Any ideas how to get this combination to work?