is there a way to hide/undraw mtext (or lines etc.) in a loop like

plot(runif(10))
iterCol <- rainbowPalette(10)

for(i in 1:10){

mtext(paste("this is iteration ", i, sep=""))
points(runif(10),col=iterCol[i])
Sys.sleep(1)

## UNDRAW/HIDE the text so that it does not mess up the plot in the next
iteration

}



--
View this message in context: 
http://r.789695.n4.nabble.com/HOW-TO-REMOVE-MTEXT-FROM-PLOT-plotting-changing-populations-with-titles-in-loop-tp3981757p3981757.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to