[R] Q: extracting data from lm

2007-07-27 Thread D. R. Evans
Warning: I am a complete newbie to R. I have read ISwR, but I am still finding myself completely stuck on some simple concepts. I have tried everything I can think of to solve this one, and finally decided that enough was enough and I need a pointer to a solution. I have the following summary

Re: [R] Q: extracting data from lm

2007-07-30 Thread D. R. Evans
On 27/07/07, Chuck Cleland [EMAIL PROTECTED] wrote: coef(summary(lm(nu1 ~ nu2)))[,2] Also, try the following which is often useful: str(summary(lm(nu1 ~ nu2))) Oh, wow! Thank you. Incidentally, just in case anyone got the wrong end of the stick, I'm not at all complaining about R. It's

[R] Q: obtaining non-transparent background in png

2007-07-31 Thread D. R. Evans
I am not understanding something about generating PNG plots. I have tried several ways to obtain something other than a transparent background, but nothing I've done seems to change the background. For example: dev.print(png, width=800, height=600, bg='red', filename='example.png') which I

Re: [R] Q: obtaining non-transparent background in png

2007-07-31 Thread D. R. Evans
On 31/07/07, Gavin Simpson [EMAIL PROTECTED] wrote: On Tue, 2007-07-31 at 10:22 -0600, D. R. Evans wrote: I am not understanding something about generating PNG plots. I have tried several ways to obtain something other than a transparent background, but nothing I've done seems to change

Re: [R] Q: obtaining non-transparent background in png

2007-08-02 Thread D. R. Evans
Prof Brian Ripley said the following at 07/31/2007 12:20 PM : You are *copying* the plot, and that means copying the background too (it *is* part of the plot). Almost certainly the plot you are copying had a transparent background: that is the default for X11. All the confusion seems to be

[R] Q: calling par() in .First()

2007-08-02 Thread D. R. Evans
As a result of another thread here, I need to be sure that the function par(bg='white') has executed before I create a plot. The simplest thing seemed to put it in .Rprofile: .First - function() { options(width=150) par(bg='white') } But now R complains at startup: Error in .First() :

Re: [R] Q: calling par() in .First()

2007-08-06 Thread D. R. Evans
Thomas Lumley said the following at 08/02/2007 05:25 PM : par() is in the 'graphics' package, which is not loaded by the time .Rprofile runs. You want graphics::par(bg='white') Thank you, but when I tried that, I got: Error in graphics::par(bg = white) : couldn't find function X11

[R] Q: how to interrupt long calculation?

2007-08-29 Thread D. R. Evans
The subject says it all really: I've tried hitting control-C (multiple times), but that doesn't seem to be a reliable way to interrupt a long calculation. What is the right way to interrupt a calculation that has been proceeding for several minutes and shows no sign of finishing soon?

Re: [R] Q: how to interrupt long calculation?

2007-08-29 Thread D. R. Evans
On 29/08/2007, D. R. Evans [EMAIL PROTECTED] wrote: The subject says it all really: I've tried hitting control-C (multiple times), but that doesn't seem to be a reliable way to interrupt a long calculation. What is the right way to interrupt a calculation that has been proceeding for several

Re: [R] Q: how to interrupt long calculation?

2007-08-30 Thread D. R. Evans
Paul Smith said the following at 08/29/2007 04:32 PM : The instance of R running will be immediately killed and then you can start R again. But then I would lose all the work. There must be some way to merely interrupt the current calculation. Mustn't there?

Re: [R] Q: how to interrupt long calculation?

2007-08-30 Thread D. R. Evans
Prof Brian Ripley said the following at 08/30/2007 11:00 AM : On Thu, 30 Aug 2007, D. R. Evans wrote: Paul Smith said the following at 08/29/2007 04:32 PM : The instance of R running will be immediately killed and then you can start R again. But then I would lose all the work. There must

[R] Q: selecting a name when it is known as a string

2007-09-04 Thread D. R. Evans
I am 100% certain that there is an easy way to do this, but after experimenting off and on for a couple of days, and searching everywhere I could think of, I haven't been able to find the trick. I have this piece of code: ... attach(d) if (ORDINATE == 'ds') { lo - loess(percent ~ ncms *

Re: [R] Q: selecting a name when it is known as a string

2007-09-05 Thread D. R. Evans
D. R. Evans said the following at 09/04/2007 04:14 PM : I am 100% certain that there is an easy way to do this, but after I have reconsidered this and now believe it to be essentially impossible (or at the very least remarkably difficult) although I don't understand why it is so :-( At least, I

[R] Q: loess-like function that allows more predictors?

2007-09-07 Thread D. R. Evans
I have a feeling that this may be a stupid question, but here goes anyway: is there a function that I can use to replace loess but which allows a larger number of predictors? (I have a situation in which it would be very convenient to use 5 predictors, which violates the constraint in loess that