Re: [Rd] "open-ended" plot limits?

2009-02-05 Thread Ted Harding
Thanks, everyone, for all the responses! Ted. On 05-Feb-09 20:48:33, Ted Harding wrote: > Hi Folks, > Maybe I've missed it already being available somehow, > but if the following isn't available I'd like to suggest it. > > If you're happy to let plot() choose its own limits, > then of course plot

Re: [Rd] "open-ended" plot limits?

2009-02-05 Thread Greg Snow
Or use range( 0, y1, y2, y3, na.rm=TRUE, finite=TRUE ) -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 > -Original Message- > From: William Dunlap [mailto:wdun...@tibco.com] > Sent: Thursday, February 05, 2009 2:38 PM > T

Re: [Rd] "open-ended" plot limits?

2009-02-05 Thread William Dunlap
> -Original Message- > From: r-devel-boun...@r-project.org > [mailto:r-devel-boun...@r-project.org] On Behalf Of Greg Snow > Sent: Thursday, February 05, 2009 1:15 PM > To: marc_schwa...@comcast.net; ted.hard...@manchester.ac.uk > Cc: R-Devel > Subject: Re: [Rd] "open-ended" plot limits?

Re: [Rd] "open-ended" plot limits?

2009-02-05 Thread Greg Snow
I use range( 0, y ) rather than c(0, max(y)), that way if there are any y values less than 0, the limits still include them (and it is slightly shorter :-). This also extends to cases where you may know that you will be adding additional data using points or lines, so you can do ylim=range(0, y

Re: [Rd] "open-ended" plot limits?

2009-02-05 Thread Duncan Murdoch
On 2/5/2009 3:48 PM, (Ted Harding) wrote: Hi Folks, Maybe I've missed it already being available somehow, but if the following isn't available I'd like to suggest it. If you're happy to let plot() choose its own limits, then of course plot(x,y) will do it. If you know what limits you want, then

Re: [Rd] "open-ended" plot limits?

2009-02-05 Thread Marc Schwartz
on 02/05/2009 02:48 PM (Ted Harding) wrote: > Hi Folks, > Maybe I've missed it already being available somehow, > but if the following isn't available I'd like to suggest it. > > If you're happy to let plot() choose its own limits, > then of course plot(x,y) will do it. > > If you know what limit

[Rd] "open-ended" plot limits?

2009-02-05 Thread Ted Harding
Hi Folks, Maybe I've missed it already being available somehow, but if the following isn't available I'd like to suggest it. If you're happy to let plot() choose its own limits, then of course plot(x,y) will do it. If you know what limits you want, then plot(x,y,xlim=c(x0,x1),ylim(y0,y1) will d

[Rd] no visible binding for global variable

2009-02-05 Thread Max Kuhn
Everyone, I know that this has been discussed a few times on the list, but I think that there is a high false positive rate of messages from findGlobals during R CMD check (I know the help page has that "The result is an approximation"). Here are two examples of from the caret package: This func

Re: [Rd] Multiple-Line Comment (PR#13503)

2009-02-05 Thread Kasper Daniel Hansen
(no cc to r-bugs) One obvious work around is to use an editor that lets you comment/ uncomment many lines of code at once. ESS/Emacs for example, has this feature. Many other editors do as well. I actually find it easier to see what is commented out this way. Clearly this does not address

Re: [Rd] [R] Is abline misbehaving?

2009-02-05 Thread Greg Snow
Apparently the fix was simpler than I anticipated (at least for Prof. Ripley). Thanks for finding and implementing this improvement. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 > -Original Message- > From: Prof Brian

Re: [Rd] JGR extension not working (PR#13501)

2009-02-05 Thread Simon Urbanek
Erik, fist, this is not a bug in R (not a bug at all, really), so we specifically ask you to not waste other people's time and report it to the maintainers. It is about a contributed package and there is a mailing list specifically for JGR http://mailman.rz.uni-augsburg.de/mailman/listinfo

Re: [Rd] Capturing all warnings (with messages)

2009-02-05 Thread Philippe Grosjean
Hello, There is a function captureAll() in the svMisc package on CRAN. Although in its current version, it simulates textual output you got at the console, it should be rather easy to modify it to return separately output, errors and warnings. There is one point to consider: the function cann

[Rd] bug in proj() (PR#13505)

2009-02-05 Thread rmh
The result of proj() is not currently coerced to data.frame when requested. I use this capability pedagogically all the time. It did work when I wrote proj() for the Chambers and Hastie book, and it still works in S-Plus. A minimal repair is in the as.data.frame.aovproj definition below. Rich

Re: [Rd] Bug in the parser (?) (PR#13504)

2009-02-05 Thread Wacek Kusnierczyk
johnc.d...@yahoo.com wrote: > Full_Name: John C. Deva > Version: 2.8.1 > OS: Fedora Linux 8, 64 bit > Submission from: (NULL) (193.200.150.189) > > > I notice that it is possible to redefine 'if' as a function of an arbitrary > number of arguments. Such redefined 'if' can then be used as any other

Re: [Rd] Bug in the parser (?) (PR#13504)

2009-02-05 Thread Peter Dalgaard
johnc.d...@yahoo.com wrote: > Full_Name: John C. Deva > Version: 2.8.1 > OS: Fedora Linux 8, 64 bit > Submission from: (NULL) (193.200.150.189) > > > I notice that it is possible to redefine 'if' as a function of an arbitrary > number of arguments. Such redefined 'if' can then be used as any oth

Re: [Rd] [R] Is abline misbehaving?

2009-02-05 Thread Prof Brian Ripley
[Moved to R-devel, where it probably should have started and it is getting to C-level functions now.] abline is not 'misbehaving' (don't be rude about the work of volunteers who are in your audience), but behaving in the same way as other graphics calls. The real story is this (and R is Open

[Rd] Bug in the parser (?) (PR#13504)

2009-02-05 Thread johnc . deva
Full_Name: John C. Deva Version: 2.8.1 OS: Fedora Linux 8, 64 bit Submission from: (NULL) (193.200.150.189) I notice that it is possible to redefine 'if' as a function of an arbitrary number of arguments. Such redefined 'if' can then be used as any other user function, except for that the parser

[Rd] JGR extension not working (PR#13501)

2009-02-05 Thread erikl
Full_Name: Erik Lukac Version: R version 2.8.1 (2008-12-22) OS: Mac OS 10.5 Submission from: (NULL) (141.84.28.167) I tried to install JGR, but somehow it doesnt work. > install.packages("JGR") Warning in install.packages("JGR") : argument 'lib' is missing: using '/Users/erikl/R/i386-apple-

[Rd] Multiple-Line Comment (PR#13503)

2009-02-05 Thread Udo . Junghans
Hello, sorry for writing here because my problem is not a realt bug but may be a solution for many people working with R: I miss the feature for commenting some lines of code at once without writing a bunch of "#" in front of each line. This is interesting for trying out some code. I found some

Re: [Rd] (PR#8192) [ subscripting sometimes loses names

2009-02-05 Thread Wacek Kusnierczyk
it's becoming an old story, but here's a bit to be added. Peter Dalgaard wrote: > Duncan Murdoch wrote: >> On 31/01/2009 7:31 AM, Andrew Piskorski wrote: >>> This (tangential) discussion really should be a separate thread so I >>> changed the subject line above. >>> >>> On Fri, Jan 30, 2009 at 11: