Displaying 20 results from an estimated 5000 matches similar to: "Axes limits in rgl.surface."
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
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
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
2012 May 02
1
rgl.Sweave not producing transparency in pdf plots with alpha
Hi Folks,
I'm trying to get rgl.Sweave to produce plots with transparency.
However, it just seems to produce opaque plots when pdf is the output
type. Perhaps this is a known issue? I'll just use .png in the
meantime, but wanted to see about this, as I didn't see it in the
documentation (though it's possible I missed it).
Thanks,
Allie
\documentclass{article}
\title {rgl
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
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
2010 Jul 30
2
Layering multiple persp plots
Hi all,
I've got two persp plots with Identical X and Y's, and I'd like to plot them
on the same graph, so that it is obvious where one plot is above the other.
I can't find any mention of this anywhere. Do I need to use wireframe?
Any help is appreciated.
Thanks,
--
Ian Bentley
M.Sc. Candidate
Queen's University
Kingston, Ontario
[[alternative HTML version deleted]]
2006 Apr 12
1
Newbie question: setting rgl.surface plot attributes
I don't seem to be able to label the x, y or z axis when creating a 3d chart
using rgl.surface. I'd like to have them parallel to the axis line and move
with the graph when rotated. Can this be done?
Many thanks,
J. Retzer
[[alternative HTML version deleted]]
2008 May 06
1
How to put different color in some portion of a surface plot?
Hi all,
I have following problem :
a = b = seq(1, 50000, by=500)
v = matrix(0, nrow=length(a), ncol=length(a))
for (i in 1:length(a))
{
for (j in 1:length(a))
{
d = c(17989*a[i], -18109*b[j])
v[i,j] = t(d) %*% matrix(c(0.0001741, 0.0001280, 0.0001280, 0.0002570), nrow=2) %*% d
}
}
library("rgl")
open3d()
2009 Mar 29
2
number of ticks in a persp() plot
Hi, I am trying to specify four ticks (at 0,1,2,3 for the y axis) in a persp
plot but the defaults overrule my specification and I obtain seven of them.
Is it possible to gain full control over them in such a plot? Here is my
code:
matlines=matrix(c(1:7,3:9,3:9,2:8),nrow=7,ncol=4)
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
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 <-
2007 Jul 07
3
color scale in rgl plots
Hello,
I'm trying to make a 3d plot using rgl in which the size and color of
each point corresponds to certain attributes of each data point. The color
attribute, let's call it X, is scaled to go from 0 to 1. The
rainbow(64,start=0.7,end=0.1) palette is perfect for what I want but I
don't know how to take that palette and pick a color from it based on
the value of X for a given data
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
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
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 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
2011 Apr 05
2
Animation for pers3d
Hello all,
I use persp3d from the rgl-package to plot a sruface. The typical call
is persp3d(x, y, z)
With cooridinate-vectros x, y and a function-values matrix z.
Now I have different z's, say z_1,...,z_n
Question:
Is it possible to generate an animation from a sequence of such calls,
for different z's?
I would like to see how the surface is beeing changed in the time.
Thank you
2006 Feb 20
1
Further rgl()/spheres3d() query
Hi,
I am applying the following code to map pca loadings onto a 3d grid, my
problem is this - the output only plots the spheres in the requested color
(in this case "red") for the first argument. The sphere from the second
argument appear as flat dark circles. Also the text3d() command only seems
to work for a couple of the positions, with no text added in most cases.
Could anyone offer