Displaying 20 results from an estimated 1000 matches similar to: "Rgl"
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,
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))
2006 May 23
1
shapes in rgl
Does anyone have a way of producing solid shapes other than spheres in
rgl? I am using rgl to produce a simple visualisation of a forest model
results using "lollipops". Its just a bit of fun, but as many of the
trees are pines I would like to depict their crowns as cones. If there
is a solution I need it to work under windows.
Here is the example.
library(rgl)
library(misc3d)
2008 Jan 29
1
drawing arrows with rgl
Hi,
I am looking for a package which allows me to draw arrows (cylinders
with cones on them, basically) in 3d images produced with rgl. Is such
a thing available?
I did notice the 'compositions' package, which contains
'arrow3D'. However, it relies on 'tensorA', which fails to install on
my machine with the error message copied below. If anyone can help me
fix this
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
2013 Apr 06
1
Plotting a curve for a Holling Type III Functional Response
Hey,
So I have a scatter plot and I am trying to plot a curve to fit the data
based on a Holling Type III functional response. My function is this:
nll2<-function(a,b) {
conefun<-(a*DBH^2)/(b^2+DBH^2)
nlls2<-dnbinom(x=cones ,size=DBH, mu=conefun,log=TRUE)
-sum(nlls)
}
and my plot is this:
plot (DBH,cones)
DBH is on the x-axis and cones is on the y-axis. How do I get the curve
2008 Mar 01
1
How to chain user mouse handlers in rgl
Dear Rglers,
With rgl, I would like to set marker when a button is pressed, but leave the
standard trackball handling otherwise. Thanks to Duncan and Oleg for helping
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
2010 Sep 09
1
rgl and lighting
Dear R community (and Duncan more specifically),
I can't work out how to make additional light sources work in rgl.
Here is the example.
First I create a cube and visualize it:
> cubo <- cube3d(col="black")
> shade3d(cubo)
Next I position the viewpoint at theta=0 and phi=30:
> view3d(theta=0,phi=30)
Next, I want to create a 2nd light source which diffuses red light
2011 Jul 07
4
rgl movimiento
Hola a todos:
Estoy intentando visualizar unos resultados de un programa en R de forma
dinámica. Dichos resultados se pueden representar, básicamente, con un plano
que gira sobre uno de sus ejes: para dar sensación de movimiento he
utilizado la función rgl.clear(), ya que no encuentro los equivalentes en
rgl de los parámetros add o new. El problema es que al limpiar la pantalla
con rgl.clear la
2010 Feb 10
1
heplot3d / rgl : example causes R GUI to crash
[Env: Tested under Win Xp, R 2.9.2 and R 2.10.1; sessionInfo() at end]
I've run into a problem with the heplot3d() function in my heplots
package which causes the R GUI to crash
('R for Windows GUI encountered a problem and needs to close...'). I
think the problem comes from an
rgl call, but, I can't get a traceback or other information because my R
session crashes. I've
2009 Aug 13
1
joining two points in rgl
Hi!!
I need to draw a cylinder/tube joining two points. I am trying to make something presentable, I have been able to do it using lines3d. But is it possible to
increase the thickness of the lines? The size parameter does not work. Does any one have any suggestions?
Thanks ../Murli
library(rgl)
pts<-structure(list(x = c(-0.975688, -0.975688), y = c(9.258795, -9.258795
), z = c(-1.8, 1.8)),
2009 Apr 23
2
Two 3D cones in one graph
Dear R-users:
The following code produces two cones in two panels. What I would like
to have is to have them in one, and to meet in the origin. Does anyone
have any good ideas how to do this?
Thanks for your help
Jaakko
library(lattice)
A<-matrix(ncol=2, nrow=64)
for(i in 0:63)
{
A[i+1,1]<-sin(i/10)
A[i+1,2]<-cos(i/10)
}
2008 Jun 25
2
help with cube3d cube size
I'm using the command below on an open3d() object to create a shaded
cube. Changes to myScalingFactor do not effect changes in the size of
the cube. What is the correct approach? Mark
shade3d(translate3d(cube3d(identityMatrix() *
myScalingFactor),-6,1,-1),col="green", alpha = 0.2)
--
Mark W. Kimpel MD ** Neuroinformatics ** Dept. of Psychiatry
Indiana University School of Medicine
2013 Sep 09
3
[Bridge] [PATCH 1/1] bridge: fix message_age_timer calculation
This changes the message_age_timer calculation to use the BPDU's max age as opposed to the local bridge's max age. This is in accordance with section 8.6.2.3.2 Step 2 of the 802.1D-1998 sprecification.
With the current implementation, when running with very large bridge diameters, convergance will not always occur even if a root bridge is configured to have a longer max age.
Tested
2017 Jul 10
2
helix spring in R
Dear useRs,
Is there a way to draw helix spring in R of desired diameter and number of turns?
regards,
Eliza
[[alternative HTML version deleted]]
2008 Oct 05
1
building packages: "R Help for package foo" vs. "HTML Help"?
In building a package, what are the settings in the package files or the
build commands that
determine whether the compiled HTML help windows have the window title
"R Help for package foo" vs. "HTML Help"?
I often have quite a few help files active, and it is much more
convenient to navigate among
them if the window has an informative title.
If this is simple to test for in
2004 Jun 04
4
YUV question
On Fri, 4 Jun 2004, Makc wrote:
> Here's what you can find in the net on YUV scheme:
Hmm? What prompted this?
> The statement I care to make here, is simply that there ain't neither
> such thing as "luminance", which details "the eye is more sensitive to",
"ain't neither"? Double negative, so I take your statement to mean
that there *is* such
2013 Jan 09
2
writing to .xlsx
Dear r helpers;
I'm interested in reading from and writing to large .xlsx files fairly
regularly. (Why, the naysayers may ask - and the answer is basically
colleagues and clients who prefer that format). I've tried out the
XLConnect and xlsx libraries, but the java implementation they use just
takes too much RAM for the files I'm working with.
gdata leverages perl and works really
2012 Oct 08
3
turn list into dataframe
Dear R users,
I'm starting to use 'apply' functions rather than for loops in R, and
sometimes the output is a bit different than what I want. In this case, the
command was
tapply(myvector,myindex,cumsum)
And the output was something like this:
$`SNRL1 Core 120`
[1] 2.8546 4.0778 5.2983 6.3863 7.5141 8.5498 9.5839 10.6933
$`SNRL1 Core 230`
[1] 7.6810 8.7648 9.8382
2008 Mar 26
4
Want to draw 3D cylinder objects
Hello,
I want to draw 3D cylinder objects in R.
Given is the length and the diameter of the cylinder.
Has anybody an example?
Thank you very much!
Best regards
--
----------------------
Dr. Hans-Joachim Klemmt
Forstoberrat
Organisationsprogrammierer IHK
Bayerische Landesanstalt f?r Wald und Forstwirtschaft
zugewiesen an
Lehrstuhl f?r Waldwachstumskunde
Technische Universit?t M?nchen