search for: undraw

Displaying 2 results from an estimated 2 matches for "undraw".

2011 Nov 02
1
HOW TO REMOVE MTEXT FROM PLOT, plotting changing populations with titles in loop
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 iteratio...
2003 Oct 14
1
"Turtle world" graphics in R
I would greatly appreciate some idea about the best approach to make a graphical interface of for a turtle world in R. In the turtle environment, the user controls movements of a turtle through the command line (e.g. forward(10), turn(5), etc.). The turtle should be displayed in the new position and heading after each command. Also, the turtle's path and, possibly, objects (squares,