lefevrol at yahoo.com
2008-Feb-17 03:00 UTC
[Rd] Probable bug in "An Introduction to R" (PR#10777)
Both the document and R itself are at 2.6.2 (2008-02-08). When I run in the Windows R console the command lines(density(eruptions, bw=0.1)) found in ? 8.2, I get: Error in plot.xy(xy.coords(x, y), type = type, ...) : plot.new has not been called yet Regards, Olivier Lefevre
ripley at stats.ox.ac.uk
2008-Feb-17 06:10 UTC
[Rd] Probable bug in "An Introduction to R" (PR#10777)
This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --27464147-1806382895-1203228439=:29265 Content-Type: TEXT/PLAIN; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8BIT You can't just pick out lines and expect them to run on their own. The context is # make the bins smaller, make a plot of density hist(eruptions, seq(1.6, 5.2, 0.2), prob=TRUE) lines(density(eruptions, bw=0.1)) rug(eruptions) # show the actual data points We do arrange to run the code from that manual to test every release. And that block of lines does work. On Sun, 17 Feb 2008, lefevrol at yahoo.com wrote:> Both the document and R itself are at 2.6.2 (2008-02-08). When I run in > the Windows R console the command > > lines(density(eruptions, bw=0.1)) > > found in ? 8.2, I get: > > Error in plot.xy(xy.coords(x, y), type = type, ...) : > plot.new has not been called yet > > Regards, > > Olivier Lefevre > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel >-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595 --27464147-1806382895-1203228439=:29265--