[R] irregular ts plot?
Prof Brian Ripley
ripley at stats.ox.ac.uk
Mon May 19 16:53:57 CEST 2003
On Mon, 19 May 2003, Welch, Ivo wrote:
> hi brian: first, thank you very much for your help. very highly
> I have read/am reading the R and plot documentations, but it will take a
> while to absorb it all. may I ask 2 more itsy queries, please? I hope
> they are the 5 second type questions for someone in the know.
> * if 2 time-series are plotted with one plot command, they are below one
> another. if 6 are plotted, they are in a 2c*3r array. which parameter
> allows me to control this behavior?
It's apparently hardwired in plot.mts:
nc <- if (nser > 4) 2 else 1
> * is it possible to run a batch command that leaves the figure window
> where it is? or, that waits for user input, so that my batch command
> can plot a figure, wait until I look at it, plot the next figure, etc.?
> ("scan() in a BATCH command does not wait.")
So you need something that does wait and not use stdin. On Windows I use
a dialog box, and I've never needed it on Linux.
> incidentally, for gnuplot, I found it very helpful that people had
> posted sample sessions on the web that contain a variety of commands
> with output and comments on what did what. google works quite well for
> searching over many such sample sessions to find something that does
> what one needs. there are R examples here and there (and especially in
> the docs), and they are extremely useful; but, it would be nicer if
> this was more random but searchable stuff.
There are books on S with *lots* of examples: see the FAQ. Books even
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-help