[Rd] Re: [R] too large alpha or beta in dbeta ? (PR#643)
Fri, 25 Aug 2000 10:53:00 -0400
On Fri, 25 Aug 2000 15:20:10 +0200 (MET DST), Martin Maechler wrote in
>> plot(function(x) dbeta(x, 534,646, log = TRUE), n = 1001)
I never knew that plot could take a function!
Could I make some suggestions?
1. It should be mentioned more prominently in the documentation.
Since functions aren't a class, I scanned over the list of plot
methods without ever noticing that functions were mentioned there.
I'd suggest modifying the description of parameter x to read:
x: the coordinates of points in the plot. Alternatively, a
single plotting structure, function or R object with a `plot' method
can be provided.
2. If xlim is specified and from and to aren't, the from and to
values should default to xlim and xlim, not 0 and 1.
3. The help for plot.function says:
"This used to be a quick hack which seems to serve a useful
purpose, but can give bad results for functions which are not
That doesn't read right: it makes me ask, "If it used to be a quick
hack, what is it now?" I'd suggest:
"This function was a quick hack which seems to serve a useful
purpose, but it can give bad results for functions which are not
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: email@example.com