Re: [R] How to use the function plot as Matlab

2005-07-17 Thread Paul Murrell
Hi Peter Dalgaard wrote: (Ted Harding) [EMAIL PROTECTED] writes: This is definitely a case where dynamic rescaling could save hassle! Brian Ripley's suggestion involves first building a matrix whose columns are the replications and rows the time-points, and Robin Hankin's could be easily

Re: [R] How to use the function plot as Matlab?

2005-07-13 Thread Ted Harding
On 13-Jul-05 klebyn wrote: Hello, How to use the function plot to produce graphs as Matlab? example in Matlab: a = [1,2,5,3,6,8,1,7]; b = [1,7,2,9,2,3,4,5]; plot(a,'b') hold plot(b,'r') How to make the same in R-package ? I am trying something thus: a - c(1,2,5,3,6,8,1,7)

Re: [R] How to use the function plot as Matlab?

2005-07-13 Thread Robin Hankin
Hi Ted makes a good point... matlab can dynamically rescale a plot in response to plot(...,add=TRUE) statements. For some reason which I do not understand, the rescaling issue is only a problem for me when working in matlab mode. It's not an issue when working in R mode Ted pointed out

Re: [R] How to use the function plot as Matlab

2005-07-13 Thread Prof Brian Ripley
For most purposes it is easiest to use matplot() to plot superimposed plots like this. E.g. x - 0.1*(0:20) matplot(x, cbind(sin(x), cos(x)), pl, pch=1) On Wed, 13 Jul 2005, Robin Hankin wrote: Hi Ted makes a good point... matlab can dynamically rescale a plot in response to

Re: [R] How to use the function plot as Matlab

2005-07-13 Thread Ted Harding
On 13-Jul-05 Prof Brian Ripley wrote: For most purposes it is easiest to use matplot() to plot superimposed plots like this. E.g. x - 0.1*(0:20) matplot(x, cbind(sin(x), cos(x)), pl, pch=1) This, and Robin's suggestion, are good practical solutions especially when only a few graphs (2 or

Re: [R] How to use the function plot as Matlab

2005-07-13 Thread Robin Hankin
On 13 Jul 2005, at 11:01, (Ted Harding) wrote: On 13-Jul-05 Prof Brian Ripley wrote: For most purposes it is easiest to use matplot() to plot superimposed plots like this. E.g. x - 0.1*(0:20) matplot(x, cbind(sin(x), cos(x)), pl, pch=1) This, and Robin's suggestion, are good practical

Re: [R] How to use the function plot as Matlab

2005-07-13 Thread Peter Dalgaard
(Ted Harding) [EMAIL PROTECTED] writes: This is definitely a case where dynamic rescaling could save hassle! Brian Ripley's suggestion involves first building a matrix whose columns are the replications and rows the time-points, and Robin Hankin's could be easily adapted to do the same,

Re: [R] How to use the function plot as Matlab?

2005-07-13 Thread Greg Snow
Ted Harding [EMAIL PROTECTED] 07/13/05 02:12AM [snip] I'm not sufficiently acquainted with the internals of plot and friends to anticipate the answer to this question; but, anyway, the question is: Is it feasible to include, as a parameter to plot, lines and points,

Re: [R] How to use the function plot as Matlab?

2005-07-12 Thread Gabor Grothendieck
On 7/12/05, klebyn [EMAIL PROTECTED] wrote: Hello, How to use the function plot to produce graphs as Matlab? example in Matlab: a = [1,2,5,3,6,8,1,7]; b = [1,7,2,9,2,3,4,5]; plot(a,'b') hold plot(b,'r') How to make the same in R-package ? I am trying something thus: a -