title: How to add \bar{x} to an R plot
body: <p>There is a point <code>x=3.1234,y=5.6789</code>, the command <code>points(x,y)</code> adds the point to a plot. I'd like to add some notations to this points on the plot.</p>
  
  <p>version 1: <code>(3.12,5.68)</code></p>
  
  <p>version 2: line1 ~ $(\bar(x),\bar(y))$, line2 ~ $\bar(x)=3.1234, \bar(y)=5.6789$</p>
  
  <p>Which means that if the number is not too long or we can display them with fixed digits, then I'd like the immediate numbers be displayed within the brackets. Otherwise I'd like it to be displayed in two lines, where the first lines says "the coordinate is mean of x and mean of y" while the second line explains what excat values are these two means.</p>
  
  <p>I tried variants of the command: <code>text(x,y-0.2,bquote(list(.(x) , .(y))));</code> <code>text(x,y-0.2,bquote(list(.(bar(x)) , .(bar(y)))));</code>, etc.</p>
  
  <p>But none of them worked good. I really appreciate if some can diaplay at least one version of the above formats.</p>