Skip to content

Need suggestions for nice handling of MANY plots

1 message · White.Denis@epamail.epa.gov

#
Here is an example of what I would do on Windows.  First create PNG
files in one folder, like this for example:

library (maptree)
data (oregon.bird.dist)
data (oregon.bird.names)
data (oregon.grid)
data (oregon.border)

for (i in 1:20) {
  filename <- paste (row.names (oregon.bird.names)[i], ".png", sep="")
  png (filename, width=400, height=380)
  group <- oregon.bird.dist[, i] + 1
  names (group) <- row.names (oregon.bird.dist)
  map.groups (oregon.grid, group, col=c("white", "dark gray"))
  lines (oregon.border)
  mtext (oregon.bird.names[i, 2], side=3, line=0)
  graphics.off ()
}

Then use the freeware viewer XnView which will scroll through images
using the thumb wheel.

Denis White
   US EPA, 200 SW 35th St, Corvallis, Oregon, 97333 USA
   voice: 541.754.4476, email: white.denis at epa.gov
   web: www.epa.gov/wed/pages/staff/white/


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._