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
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.