search for: rectnam

Displaying 1 result from an estimated 1 matches for "rectnam".

Did you mean: sectname
2009 Jul 21
2
animated grid graphics
...ample of what I need: ##============================================================================== library(grid) grid.newpage() pushViewport(plotViewport()) pushViewport(viewport(xscale = extendrange(c(0, 100)), yscale = extendrange(c(0, 100)))) grid.xaxis() grid.yaxis() rectNames <- paste("r", 1:100, sep = "") for (i in 1:100) { grid.rect(x = unit(sample(0:100, 1), "native"), y = unit(sample(0:100, 1), "native"), width = 0.1, height = 0.1, name = rectNames[i]) } for (i in 1:100) { grid.remove(rectName...