> From: [EMAIL PROTECTED] 
> 
> Many thanks
> 
> I don't see any other solution than what you've proposed.
> I have tried the par(mfg=c(i,j,k,l))
> But it overwrites rather than replaces the previous graph

Set the background color of the new plot to something like "white" so the
previous graph will be completely covered.

HTH,
Andy
 
> take care
> vincnet
> 
> Dear Vincent,
> 
> You can't clear a title only. The idea is to plot without one, like
> 
> plot(...,main="",sub="",xlab="",ylab="")
> 
> and add the title by hand (as you mentioned).
> 
> Moreover, AFAIK you can't clear one plot in a multiple figure 
> environment, since you can only clear the graphics device 
> (not the plot), but you can put a new plot onto a specific 
> part of your m.f.e. using
> 
> par(mfg=c(i,j))
> 
> see ?par and "An Introduction to R" for more details.
> (I have to admit that I am unsure whether that will remove a 
> plot there, or create the new one on top of it - hiding the 
> old one. That matters with respect to dev.copy() I assume.)
> 
> HTH
> 
> Thomas
> 
> ---
> 
> Thomas Hotz
> Research Associate in Medical Statistics
> University of Leicester
> United Kingdom
> 
> Department of Epidemiology and Public Health
> 22-28 Princess Road West
> Leicester
> LE1 6TP
> Tel +44 116 252-5410
> Fax +44 116 252-5423
> 
> Division of Medicine for the Elderly
> Department of Medicine
> The Glenfield Hospital
> Leicester
> LE3 9QP
> Tel +44 116 256-3643
> Fax +44 116 232-2976
> 
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] 
> > [mailto:[EMAIL PROTECTED]
> > Sent: 15 July 2003 14:31
> > To: [EMAIL PROTECTED]
> > Subject: [R] clearing some part of a graph
> >
> >
> > Hi R lovers
> >
> > 2 questions:
> >
> > 1) I'd like to know how to clean the title, the sub title or the 
> > labels of a graph. I know how to redefine it with the 
> function title() 
> > but it overwrites the previous title and do not replace it
> >
> > 2) How could I clear a whole plot (for example in a multiple figure
> > environment)
> >
> > thanks for your help
> > vincent
> >
> >
> >
> >
> >
> >
> > ******************************************************************
> > The sender's email address has changed to
> > firstname.lastname@ sgcib.com. You may want to update your personal 
> > address book. Please see http://www.sgcib.com for more information.
> >                                **
> > This message and any attachments (the "message") are
> > confide...{{dropped}}
> >
> > ______________________________________________
> > [EMAIL PROTECTED] mailing list 
> > https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> >
> 
> 
> 
> 
> 
> 
> 
> ******************************************************************
> The sender's email address has changed to 
> firstname.lastname@ sgcib.com. You may want to update your 
> personal address book. Please see http://www.sgcib.com for more 
> information.
>                                **
> This message and any attachments (the "message") are 
> confide...{{dropped}}
> 
> ______________________________________________
> [EMAIL PROTECTED] mailing list 
> https://www.stat.math.ethz.ch/mailman/listinfo> /r-help
> 

------------------------------------------------------------------------------
Notice: This e-mail message, together with any attachments, ...{{dropped}}

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to