Re: [R] Changing a plot

2008-09-25 Thread Ben Bolker
R Help wrote: > Thanks, I looked into the grid package. The grid package does do a > better job of managing the plotting, but it's still re-plotting the > entire canvas whenever a modifcation is made to a plot. > > I guess I should have been a little clearer with my question. Here's > a sample f

Re: [R] Changing a plot

2008-09-25 Thread Peter Dalgaard
R Help wrote: > Thanks, I looked into the grid package. The grid package does do a > better job of managing the plotting, but it's still re-plotting the > entire canvas whenever a modifcation is made to a plot. > > I guess I should have been a little clearer with my question. Here's > a sample fu

Re: [R] Changing a plot

2008-09-25 Thread R Help
Thanks, I looked into the grid package. The grid package does do a better job of managing the plotting, but it's still re-plotting the entire canvas whenever a modifcation is made to a plot. I guess I should have been a little clearer with my question. Here's a sample function. library(tcltk) x

Re: [R] Changing a plot

2008-09-25 Thread Jim Lemon
R Help wrote: Hello list, I've been working on this problem for a while and I haven't been able to come up with a solution. I have a couple of functions that plot a bunch of data, then a single point on top of it. What I want is to be able to change the plot of the point without replotting all

Re: [R] Changing a plot

2008-09-24 Thread Adaikalavan Ramasamy
One way is to keep a copy of the original and then return to it when you need it. x <- rnorm(100,1,0.5) y <- rnorm(100,1,0.5) plot(x,y,pch=16) original <- recordPlot() for( i in 1:10 ){ points( x[i], y[i], pch=19, col="yellow", cex=3) points( x[i], y[i], pch=16) Sys.sleep(1)

Re: [R] Changing a plot

2008-09-24 Thread Ben Bolker
R Help gmail.com> writes: > > Hello list, > > I've been working on this problem for a while and I haven't been able > to come up with a solution. > > I have a couple of functions that plot a bunch of data, then a single > point on top of it. What I want is to be able to change the plot of > t

[R] Changing a plot

2008-09-24 Thread R Help
Hello list, I've been working on this problem for a while and I haven't been able to come up with a solution. I have a couple of functions that plot a bunch of data, then a single point on top of it. What I want is to be able to change the plot of the point without replotting all the data. Cons