[R] Looking for parallel functionality between Matlab and R

Jim Lemon jim at bitwrit.com.au
Wed Jun 27 13:05:26 CEST 2007


El-ad David Amir wrote:
> I'm slowly moving my statistical analysis from Matlab to R, and find myself
> missing two features:
> 
> 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)
> b) How do I mimic Matlab's 'axis'? (after drawing my plots I want to zoom on
> specific parts- for example, x=0:5, y=0:20).
> 
I think what you want for a) is par(ask=TRUE).

There have been a few discussions of zooming on the help list - see:

http://stats.math.uni-augsburg.de/iPlots/index.shtml

for one solution.

Jim



More information about the R-help mailing list