Hi,

I use two ways to solve this..

1- Assuming you are runing R under Windows platform you could use

>windows(record=T)
>plot(xc,residuals=TRUE,se=TRUE,pch=".")

That way the graphic window will "save" all five outputs and you can surf
them via "PageUp", "PageDown" keys...

2- See ?jpeg to export the graphics in image format, but for me it's easier
(cleaner) to export them to pdf like this:
>pdf(file=("your_file.pdf"),onefile=T)
>plot(xc,residuals=TRUE,se=TRUE,pch=".")
>dev.off()

This is a very simple matter, I encourage you to look for FAQ's and manuals
before posting

Greetings
_____________________________________
Original message

>Hi all,

>I fitted a model  say with five

>xc<-lm(  y~x1,x2,x3,x4,x5)

>I want to plot the residuals for each factor and I used this,

>plot(xc,residuals=TRUE,se=TRUE,pch=".")

>I only get the plot of the last factor (i.e., x5). I think it is
>overwriting.

>How can I send  the five plots into  a file?  I usually use cut and paste
>and this may not be the right thing to do.

>Thanks in advance

-- 
Marcos Antonio Carvajalino Fernández
Estudiante de Ingeniería Ambiental y Sanitaria
Universidad del Magdalena
Santa Marta, Colombia

	[[alternative HTML version deleted]]


