[R] Add coordinates at specific points...
David Winsemius
dwinsemius at comcast.net
Wed Jul 13 22:41:35 CEST 2011
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 (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.50000" outside the
> rectangle box. How to do it in R?
> Right now, I'm using Windows Paint to add the characters "2.50000"
> up to the
> plot drawn by R.
--
David Winsemius, MD
West Hartford, CT
More information about the R-help
mailing list