[R] Saving interactive modified latttice plots?
Derek Eder
derek.eder at lungall.gu.se
Mon Nov 30 12:25:02 CET 2009
The lattice function panel.identify() allows the labeling of mouse-selected plot points.
But ... how does one save the resulting plot? E.g., to png() or pdf()
Thank you!
# example code
library(lattice)
xyplot(rnorm(10,0,1)~rnorm(10,0,1))
trellis.focus() # left click on plot panel to select
panel.identify() # left click on selected points. Right click to exit process
trellis.unfocus()
Derek N. Eder
Gothenburg University
"The most dangerous thing in the jungle is not the snakes, the spiders, the tigers, ...
The most dangerous thing in the jungle is your mind!"
More information about the R-help
mailing list