[R] rgl: reproduce final state of interactive plot?
    Ben Bolker 
    bbolker at gmail.com
       
    Thu Jul 14 20:28:46 CEST 2011
    
    
  
sjaffe <sjaffe <at> riskspan.com> writes:
[snip snip]
> This can also be used to 'snap' the current view during an interactive
> session and restore it later during that same session, which could be quite
> useful.
> 
> To save typing, a (trivial) pair of functions to encapsulate this:
> 
> snap.view    <- function() par3d( c("userMatrix", "FOV", "zoom") )
> restore.view <- function( snap) par3d( snap )
> 
  This is very nice, I keep having to remember how to do things
like it.  Duncan, perhaps it could go in an example in the package ... ?
  Ben
    
    
More information about the R-help
mailing list