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

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

On 6/26/07, El-ad David Amir <amel_at_cs.bgu.ac.il> 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 (http://www.pallier.org)

	[[alternative HTML version deleted]]

______________________________________________
R-help_at_stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
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 https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.