similar to: rgl: reproduce final state of interactive plot?

Displaying 20 results from an estimated 4000 matches similar to: "rgl: reproduce final state of interactive plot?"

2011 Sep 09
1
rgl: axis/viewport/box problems in persp3d()
Dear expeRts, I am a new user of rgl, below is my first trial to plot a simple function in 3d. I managed to put the axes in the right locations, but: (1) The xlab, ylab, and zlab arguments are ignored; how can I put in axes labels? (2) Since I removed the axes in persp3d() the viewport is too small; is it possible to keep the size of the viewport? (3) The box is not correctly drawn, there
2017 Oct 19
1
overlaying points and lines on a surface3d rgl plot with axes
Hi R users and experts, I am interested in learning more about the use of 3D plots. Specifically, I want to add points and lines to a surface plot. And get the axes and labels plotted also. Here is what I have tried with an example data set : library(rgl) vol2 <- 2*volcano # Exaggerate the relief library(reshape) mvol2 <- melt(vol2) str(mvol2) # First, persp and persp3d plots do not succeed
2011 Sep 09
1
Rgl and plotmath symbols (via sprites): a trial
Dear all, Below is some code where I try to get plotmath symbols in an rgl plot. Duncan Murdoch kindly suggested to use a "sprite" for this. As you can see, on can get it to work, but my knowledge about grid and rgl is too limited to perfectly solve the problem. 1) As you can see (please rotate the plot a little bit so that (0,0,0) is "in front"), the quality of the .png
2011 Jun 03
1
movie3d in rgl object 'movie' not found
Hello, I am trying to save a .gif movie using movie3d from the package {rgl}. I am using the following code combined with the globe example on the ?movie3d page. I've installed ImageMagick and the directory seems to be working properly, i.e. when I do Sys.getenv("PATH"), C:\\Program Files (x86)\\ImageMagick-6.7.0-Q16 shows up. #### library(rgl) open3d() lat <-
2009 Apr 08
1
persp3d and rgl.viewpoint for rotating 3D plots
Dear R-users, within the rgl-package, I would have a question about the usage of persp3d in combination of rgl.viewpoint. I am not able to figure out how to let a 3D plot rotating around likewise the example in ?rgl.viewpoint. It seems that when I use persp3d(...) I see something on my screen, which is different from what I get when it's rotating. Is there any different behavior between
2009 Mar 19
1
two plots side-by-side with persp3d(rgl)
Dear R-users, I would like to place two 3D plots side-by-side in a rgl-setting. It would nice to have something like "par(mfrow=c(1,2))" for basic plots, or an array framework for wireframe(lattice) (see example below). I only managed to overlap two persp3d plots. My final idea would be to animate both surfaces using play3d(rgl). Thanks in advance for any help. Best, Carlo Giovanni
2011 Jun 08
1
3D-plotting a 2D-matrix that contains z-values (3rd dimension)
Hello, say I have a 2D-matrix (indexed by x and y), which contains z values, which I want to plot over x-y. Either dotted, or if possible as a landscape. I tried around with persp and plot3d (from rgl) and persp3d (from rgl). I sometimes get something that looks good and a while later, when trying some new data I need to worry about that again. Is there something lika a convenience function
2012 Aug 27
1
RGL plot : lighting problem when triangle3d and persp3d are used in the same plot
Dear all, I have tried to plot a triangular matrix with the function persp3d(rgl). for example z=rbind(c(1,NA,NA,NA),c(5,3,NA,NA),c(4,2,9,NA),c(8,6,5,11)) x=1:4 y=1:4 persp3d(x,y,z,color="gray") The two extreme points are not plotted (value=1 and value=10). It seems because the half of the matrix have 'NA' and perp3d need planar quadrilateral face. So I decided to use the
2009 Feb 28
2
rgl persp3d bounding box color problem.
Hi guys, I hit on a problem when I use rgl. Could you try to run the code here in this link and see why the first persp3d gives a red bounding box and the second shows black? http://rafb.net/p/g1i7ur33.html (sorry for not pasting the code here directly but my previous email got filtered by this list so I suspect my code looks like spam to the spam filter) I'm expecting black color to be
2014 Apr 17
1
rgl rotations
Is there a way to change the viewpoint using view3d (or rgl.viewpoint) with respect to the image that currently appears rather than the perspective that rgl thinks is the default? For example, if I create an image and then perform what should be a no-op: rgl.viewpoint(userMatrix=rotationMatrix(0,1,0,0)) the image is rotated. Then I can perform rotations on the result without surprises. But I
2008 Jun 24
2
problem with rgl interactivity with R-2.7.1 and Ubuntu Hardy
I'm trying to use the rgl package on R-2.7.1 running on top of Ubuntu Hardy amd64. using open3d() and plot3d() I get a plot, but it is not interactive. Furthermore, changes to par3d("FOV"=my.new.value) do nothing. I suspect something is wrong with the rendering engine or interface to it. I do have an Nvidia driver installed and compiz works correctly on the desktop. I've
2011 Jun 18
1
[rgl] Dynamically change the color of 3d objects
Hi, I'm new here. This question concerns the package rgl. Is it possible to change the colour of a set of points drawn with plot3d /without/ removing them from the scene? The idea is to create a presentation of a clustering algorithm, step by step, representing the currently assigned cluster by a colour. Removing all the points with "rgl.pop" and replotting them at each step
2012 Jan 06
1
how to use rgl to plot dynamic orbit
Dear all, I have a question about the plotting of the dynamical orbit by using rgl. My code is as follows: open3d() par3d(cex=2) bg3d("white") for(i in 1:out.length){ ind<-which plot3d(x[1:i],y[1:i],out[,"z"][1:i],xlim=c(-10,10),ylim=c(-10,10),zlim=c(-10,10),col="red",cex=2) Sys.sleep(0.0001) } ,where x,y,out[,"z"] are the position of the object in
2012 Nov 02
1
rgl package and animation
I am trying to figure out how to use rgl package for animation. It appears that this is done using the play3d() function. Below I have some sample code that plots a 3D path and puts a sphere at the point farthest from the origin (which in this case also appears to be at the end of the path). What I would like to do is animate the movement of another sphere along the length of the path
2010 Jul 27
1
rgl package don't draw points with a color over points with another color
I want to plot points with different colors to show different selections of points in a 3d plot. My problem is that if I plot a red point at a location where already a blue point was plotted, than the point is still blue. Is there a parameter or so which can be used to draw over a existing point? Example: > require(rgl) > open3d() > plot3d(a<-c(1,2,3,4,5),a,a,type="l",
2008 Oct 24
1
movie3d function in the rgl package
Dear list, I'm using the function "movie3d" in the package "rgl" to create a .gif animation of a 3d graphic. The program "ImageMagik" is working properly, R packages are working, basic examples available in the manual also working fine. Problem Solved: when I tried to create more complex movies, i.e. combining different views and zooming, the R-console crashed
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))
2007 Dec 17
1
Axes limits in rgl.surface.
I have looked through the documentation and have not been able to find a way of using an xlim, ylim, or zlim type option on rgl.surface. I know that persp3d has the option, but seems to only be able to expand the axes not reduce them. Is there anyone who has an idea of how to do this? Thank you for your time. [[alternative HTML version deleted]]
2009 Oct 15
1
ImageMagick not seen by movie3d function from rgl package
Hello R-users, I have downloaded and installed a binary version for Windows OS of ImageMagick (ImageMagick6.5.6-10-q16-windows-dll.exe), I have installed the rgl package and i've tried running the following example from ?movie3d() library(rgl) open3d() plot3d( cube3d(col="green") ) M <- par3d("userMatrix") play3d( par3dinterp( userMatrix=list(M,
2007 Sep 25
2
3d barplot in rgl
Is there anyway to plot a matrix using a 3d bar plot. Something like bar3 in matlab? The example in demo hist3d does a 3d barplot for binned data, but has anyone tried something for a simple matrix with spaces betwen bars and axis labels using matrix dimnames or 1,2,3? stages<-letters[1:3] A<-matrix(c( 0.21, 0.21,0.03, 0.55, 0.58, 0.09, 1.30, 1.35, 0.22), nrow=3, byrow=TRUE,