Re: [R] text position with offset

2013-10-03 Thread Duncan Murdoch
On 03/10/2013 12:48 PM, Jinsong Zhao wrote: Hi there, I have draw a scatter plot. Now, I hope to label the points in the plot. For example: plot(1:10) text(1:10, 1:10, LETTERS[1:10]) In the above line, I can set position for each labels with pos, e.g.: text(1:10, 1:10, LETTERS[1:10], pos = sa

Re: [R] text position with offset

2013-10-03 Thread Greg Snow
You can use the mapply function (or Vectorize) to call text with multiple values for arguments that only take a single value, like adj and offset. On Thu, Oct 3, 2013 at 10:48 AM, Jinsong Zhao wrote: > Hi there, > > I have draw a scatter plot. Now, I hope to label the points in the plot. > For