Displaying 20 results from an estimated 900 matches similar to: "rgl: axis/viewport/box problems in persp3d()"
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
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 Apr 25
1
Defining origin for rotation in RGL device
Hi all,
How can I tell RGL to set the center for the rotation to the origin of the coordinate system (0,0,0).
It seems that the default is to use the center of the display not the origin of the coordinate system.
open3d()
lines3d(c(0, 1), c(0,0), c(0,0))
lines3d(c(0,0), c(0, 1), c(0,0))
lines3d(c(0,0), c(0,0), c(0, 1))
TIA
Mark
???????????????????????????????????????
Mark Heckmann
Blog:
2013 Jun 25
1
Correct scaling of axis in persp3d plot
Hi,
I want to format my axis in my persp3d plot.
With my data, which I attached I created a persp3d plot with the following code, which I summarized from different code snippets I found:
library(rugarch)library(rgl)library(fGarch)fd <-as.data.frame(modelfit,which ='density')color <-rgb(85,141,85,maxColorValue=255)x <-seq(-0.2,0.2,length=100)y <-c(1:2318)f
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 <-
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
2007 May 29
1
rgl.postscript
Hi,
I am having an issue when creating a postscript file from RGL window. It
seems to cut off some of the axis labels. Here is the code I am using.
I created a 3D plot using RGL_0.71 with R 2.5 on Windows XP.
z1<-c(5,4,1,4.5,2,3,2,1,1)
z2<-c(6,8,7,7.5,5,3.5,4,1,1)
z3<-c(3,2,4,7,3,4.5,6,2,3)
x1<-seq(1,9)
x2<-seq(1,9)
x3<-seq(10,18)
y1<-seq(8,0)
y2<--1*y1
2011 Oct 07
1
axes3d/bbox3d - axis values not fixed
Hello,
I'm using the rgl package and plotting a plot with it. I'd like to have all
the axes values auto-hide, but I want to plot a series of characters instead
of the values of the measurement for 2 of the axes. So in the end I will
have one axis (z actually) behave per normal (auto-hide) and I'd like the
other two axes to be custom character vectors that auto-hide.
Example:
x <-
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
2010 Dec 17
2
rgl: coordinating and saving viewpoints, zoom, scale for multiple images
Context: I have two or more rgl-based views of a given data set, perhaps
fitting different
models, or showing different things across views. I want to be able to
hand-rotate, zoom, scale
one view to something I like, and then show the other views with
matching viewpoints and scaling.
so that one could flip back/forth among graphs and see only the relevant
differences.
In 2D, all this usually
2012 Mar 09
2
rgl: cylinder3d() with elliptical cross-section
For a paper dealing with generalized ellipsoids, I want to illustrate in
3D an ellipsoid that is unbounded
in one dimension, having the shape of an infinite cylinder along, say,
z, but whose cross-section in (x,y)
is an ellipse, say, given by the 2x2 matrix cov(x,y).
I've looked at rgl:::cylinder3d, but don't see any way to make it
accomplish this. Does anyone have
any ideas?
thx,
2012 Mar 12
1
How to add/draw a persp3d graph to a plot with an existing surface/graph
Dear R users,
I have been trying to draw the following 3d graphs: The solid region bounded
above by the paraboloid z = 9 - x2 - y2 and below by the unit circle in the
xy-plane.
I wanted to visualize the solid region bounded by those two graphs. I could
draw those two 3d graphs separately, but I could not get those two to work
in one single plot.
Here's my code for the paraboloid:
x <-
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,
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 Aug 09
1
rgl how to plot a cylinder like arrow3d?
Dear List,
I'm trying to draw vector in XYZ with rgl under use of a cylinder3d.
Therefore I scale and rotate a basis-cylinder).
However, somehow the rotation is wrong as
verified by overplotting arrow3d().
Where is my mistake?
library(heplots)
library(rgl)
# ... 2 vectors
data=data.frame(row.names=c('X','Y','Z'), x1=c(2,1,5),y=c(4,3,2))
2008 Nov 20
1
Math Expression in 3D Plots
Is there anyway to label axes in 3D plots with mathematical expressions?
In the code below, I want to replace "delta_yrsed" with what "\Delta
\widehat{yrsed}" represents in TeX, but the [xyz]lab parameters of title3d
appear to only accept character strings.
require("rgl")
fn.delta.yrsed <- function(dist, delta.dist,
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 Jul 14
1
rgl: reproduce final state of interactive plot?
After interacting with a 3d plot (eg plot3d, persp3d), is there a way to
capture the final settings of view angles, etc, so that the final plot could
be easily reproduced? The plot functions themselves just return a vector of
'ids'.
--
View this message in context: http://r.789695.n4.nabble.com/rgl-reproduce-final-state-of-interactive-plot-tp3667866p3667866.html
Sent from the R help
2006 Aug 15
0
zlim not working in persp3d
Hi list,
I'm trying to limit the z axis plotted using persp3d {rgl} to a given
range. I'm trying the following statement
persp3d(g0,pa,D, xlim=range(g0),ylim=range(pa), zlim=range
(zbounds),col="lightblue")
where g0 and pa are both a range of 20 numbers from 0.05 to 1, and D
is a 20 x 20 matrix with values ranging from 0 to 30000. I'm trying
to set a cap on the Z