Skip to content
Prev 64864 / 398500 Next

basic question about changing limits on generated plots

rif
Marc,

This does not do what the matlab code I posted does (the matlab code
also works in the free program octave, if you want to try).  The
matlab code moves already plotted data within the window (replots it).
When I first type plot(1:10,1:10), I see a graph with axis limits [1
10 1 10].  When I type hold on (to keep my original data), and execute
plot(2:12,5:15), the plot I see is equivalent to the plot I'd have
gotten if I'd originally specified axis limits [1 12 5 15].  By
contrast, in the R code you sent, it's as if I'm superimposing two
unrelated plots.

Essentially, the underlying "task" is that I want to compare multiple
functions, but I do not know good limits for the complete set of
functions when I start.  Being able to adjust the graph to show all
the data I've plotted so far would be extremely useful for exploratory
analysis.  This is the mode I and colleagues generally use matlab and
octave in.

Does this question get asked all the time?  It seems to be something
that would come up a lot for people who switch from Matlab/Octave to
R, but I searched the archives and didn't really see anything.

Cheers,

rif
Message-ID: <200502240214.j1O2Eoj1030458@five-percent-nation.mit.edu>
In-Reply-To: Your message of "Wed, 23 Feb 2005 19:19:37 CST." <1109207977.25893.17.camel@horizons.localdomain>