Re: [R] Looking for parallel functionality between Matlab and R

From: Christophe Pallier <>
Date: Tue, 26 Jun 2007 16:59:41 +0200

On 6/26/07, El-ad David Amir <> wrote:


> a) How do I mimic Matlab's 'hold on'? (I want to show several plots
> together, when I type two plots one after the other the second overwrites
> the first)

par(new=T) (see ?par)

Yet, it often better, after a call to the 'plot' command, to use 'points' or 'lines' to add new elements to the plot. Also, if you want to plot several curves in one shoot, you can use 'matplot'.

Christophe Pallier (

	[[alternative HTML version deleted]]

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Tue 26 Jun 2007 - 15:36:38 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 26 Jun 2007 - 16:32:20 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.