6

I would like to have the following, for example in a ggplot2 label:

ylab(expression((hat(beta)^(2))(x)))

but without the parentheses around the hat(beta)^(2). But if I remove the parentheses, then the (x) goes up to the exponent.

Is there grouping in these expressions? Or invisible parentheses?

plannapus
  • 18,529
  • 4
  • 72
  • 94
Xu Wang
  • 10,199
  • 6
  • 44
  • 78

1 Answers1

8

Is this what you would like?

ylab(expression(hat(beta)^(2)*(x)))
BenBarnes
  • 19,114
  • 6
  • 56
  • 74
  • Yes, thank you. I did not think of using * because I was thinking "function of" and not "multiplying" but I guess they are the same. – Xu Wang Apr 16 '12 at 06:02