search for: r3ddefaults

Displaying 7 results from an estimated 7 matches for "r3ddefaults".

Did you mean: 3ddefault
2013 Oct 07
1
search for variable in package in .GlobalEnv first
Hi First, sorry if I get the terminology wrong, I am still quite new to the concept of using environments and workspaces. Say I have a statement in a package SIM like sim <- TYPE where the variable TYPE is initialized in the package to e.g. "exponential" (SIM::TYPE == "exponential"). Now, I want to give the user the option of specifying the variable TYPE, but to the
2010 Apr 27
2
how to set chart output size in rgl (surface3d)?
Hi R users, Does anyone know how to change the size of 3d charts? I'm using surface3d in rgl package, opening a new window each time to display the chart. I want it so that the chart fills the whole window, because when I output it to png, I don't want all the white space around the chart (right now, i'm getting this white "border" around the chart because the chart is
2008 Mar 01
1
How to chain user mouse handlers in rgl
...elping me handling key down. How do I say in a custom mouse handler "after having done your work, forward to standard trackball once only"? The example below shows the idea, but it works only once, then reverts to standard trackball handling. Dieter #---------------------- library(rgl) r3dDefaults open3d() shade3d(cube3d(color=rep(rainbow(6),rep(4,6)))) btn3d <- function() { begin <- function(x, y) { # Add checking for key down later cat(x,y,"\n") # Forward to trackball (no easier way?) newhandler <- par3d("mouseMode") newhandler[1] <-...
2010 Jun 27
1
Offscreen rendering in RGL?
Hi there, I've written a script for reading 3D simulation data into R, rendering it using RGL, and then saving the resulting plot using the snapshot3d() function. The results are fantastic! However, whenever RGL plots anything it automatically brings the viewing window into focus. Since I'm producing a large number of plots in a loop, my machine becomes almost unusable for the
2010 Oct 08
1
Can Sweave be instructed to use the cairo graphics device?
I'm writing a book using Sweave which includes Unicode characters which R's postscript and pdf graphics devices don't handle properly. The cairo graphics device does handle these characters properly. Thus I'd like to be able to instruct Sweave to use cairo (either sometimes or always) to produce graphics when it processes R code. Is this possible? Many thanks, Roger Levy --
2008 Sep 17
1
rgl: How to position a window during open3d call
Dear all, The documentation on the function open3d in the rgl package, reads: open3d opens a new rgl device, and sets the parameters as requested. I want the new rgl device (window) to be sized and positioned in a specific place on my screen. So, I try to set the "windowRect" parameter as follows: > library("rgl") > open3d(windowRect=c(100,100,500,500))
2011 Dec 29
2
3d plotting alternatives. I like persp, but regret the lack of plotmath.
I have been making simple functions to display regressions in a new package called "rockchalk". For 3d illustrations, my functions use persp, and I've grown to like working with it. As an example of the kind of things I like to do, you might consult my lecture on multicollinearity, which is by far the most detailed illustration I've prepared.