r - How to include subscript in text for plot point labels -


Hello I'm new to R. So I apologize if this is a very basic question I can say on point 11 on X axis Trying to add text to the point and add 900 points on the y axis which will be read as subscript with t0 = -4.0280 0. t0 & lt; - 4.0280 I tried to do this:

  text (11900, paste ("t [0] =", t0, cx = 0.8) # Which gives the text '[0] = -4.0280' (11,900, expression (paste ("T [0] =", T0)), cx = 0.8, which gives 't [0] = t' # I have found the closest: text (11,900, expression (paste (t [0] == tt)), cx = 0.8,   

which will use the subscript, but

Cheers.

You Expression can change with substitute . No need for paste The argument option to replace the string t0 with the value of the object list (t0 = t0) to the t0 object Is:

  plot (1,1) T and LT; - 1.3 text (1, 0.8, option (t [0] == T, list (t = 0)), cx = 0.8)   

 Enter image details here

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -