Re: [R] Add coordinates at specific points...

2011-07-14 Thread Greg Snow
Behalf Of David Winsemius Sent: Wednesday, July 13, 2011 6:11 PM To: JIA Pei Cc: r-help@r-project.org Subject: Re: [R] Add coordinates at specific points... On Jul 13, 2011, at 7:59 PM, JIA Pei wrote: > > Thanks David, for your prompt reply. > Ok... just avoid this mess. > I'd

Re: [R] Add coordinates at specific points...

2011-07-13 Thread Duncan Murdoch
On 13/07/2011 7:49 PM, David Winsemius wrote: On Jul 13, 2011, at 7:42 PM, JIA Pei wrote: Hi, Thanks David Winsemius: "mtext" works !! However, in R plot, "mtext" will automatically overlap/overwrite the existing coordinates, which makes the coordinates a messy. Refer to http://www.visiono

Re: [R] Add coordinates at specific points...

2011-07-13 Thread David Winsemius
On Jul 13, 2011, at 7:59 PM, JIA Pei wrote: Thanks David, for your prompt reply. Ok... just avoid this mess. I'd love to emphasize the key point M(2.1, sin(2.1)), and just write a point coordinate by the side of M .How to do that easily? Have you worked through the examples on the help(tex

Re: [R] Add coordinates at specific points...

2011-07-13 Thread JIA Pei
Thanks David, for your prompt reply. Ok... just avoid this mess. I'd love to emphasize the key point *M(2.1, sin(2.1))*, and just write a point coordinate by the side of M .How to do that easily? By the way, if there is another point *N(2.2, sin(2.2))*, will M and N conflict (overlap) each other?

Re: [R] Add coordinates at specific points...

2011-07-13 Thread JIA Pei
Hi, Thanks David Winsemius: "mtext" works !! However, in R plot, "mtext" will automatically overlap/overwrite the existing coordinates, which makes the coordinates a messy. Refer to http://www.visionopen.com/Rplot.png , which is produced by only 3 lines. dev.new(width = 640, height = 480) > plot(

Re: [R] Add coordinates at specific points...

2011-07-13 Thread David Winsemius
On Jul 13, 2011, at 7:42 PM, JIA Pei wrote: Hi, Thanks David Winsemius: "mtext" works !! However, in R plot, "mtext" will automatically overlap/overwrite the existing coordinates, which makes the coordinates a messy. Refer to http://www.visionopen.com/Rplot.png , which is produced by

Re: [R] Add coordinates at specific points...

2011-07-13 Thread David Winsemius
On Jul 13, 2011, at 1:22 PM, JIA Pei wrote: Hi, all: I used two lines of very simple code to draw a sin curve. dev.new(width = 640, height = 480) plot(sin, -pi, 2*pi) First look at: ?mtext # then try mtext(text="2.5000", side = 1, line = 1, at = 2.5) Now, I added a specific line (re

[R] Add coordinates at specific points...

2011-07-13 Thread JIA Pei
Hi, all: I used two lines of very simple code to draw a sin curve. dev.new(width = 640, height = 480) > plot(sin, -pi, 2*pi) Now, I added a specific line (red line in the picture at http://www.visionopen.com/Rplot.png) by using abline. However, I still love to add the X-coordinate "2.5" out