[Rd] Manual page example of plot.window needs fixing

Roger Bivand Roger.Bivand at nhh.no
Tue Oct 11 21:17:16 CEST 2005


I was looking at the example on the manual page of plot.window, and
noticed that it needs fixing - names(eurodist) should now be
labels(eurodist):

--- /home/rsb/topics/R-2.2.0/src/library/graphics/man/plot.window.Rd    
2005-04-18 12:18:59.000000000 +0200
+++ plot.window.Rd      2005-10-11 21:08:57.000000000 +0200
@@ -48,6 +48,6 @@
 ry <- range(y <- -loc[,2])
 plot(x, y, type="n", asp=1, xlab="", ylab="")
 abline(h = pretty(rx, 10), v = pretty(ry, 10), col = "lightgray")
-text(x, y, names(eurodist), cex=0.8)
+text(x, y, labels(eurodist), cex=0.8)
 }
 \keyword{aplot}

with reference to Prof. Ripley's message of 5 May:

http://finzi.psych.upenn.edu/R/Rhelp02a/archive/55417.html

-- 
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Helleveien 30, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand at nhh.no



More information about the R-devel mailing list