Re: [R] rgl not plotting properly

2023-05-05 Thread Jiayue Wang
在 5/5/23 21:08, Duncan Murdoch 写道: On 05/05/2023 7:41 a.m., Jiayue Wang wrote: 在 5/5/23 19:15, Duncan Murdoch 写道: On 05/05/2023 6:48 a.m., Jiayue Wang wrote: Thanks Duncan. glxgears works at the terminal; tcltk::tktoplevel() outputs the following: $ID [1] ".1" $env attr(,"class") [1]

Re: [R] rgl not plotting properly

2023-05-05 Thread Duncan Murdoch
On 05/05/2023 7:41 a.m., Jiayue Wang wrote: 在 5/5/23 19:15, Duncan Murdoch 写道: On 05/05/2023 6:48 a.m., Jiayue Wang wrote: Thanks Duncan. glxgears works at the terminal; tcltk::tktoplevel() outputs the following: $ID [1] ".1" $env attr(,"class") [1] "tkwin" Jiayue But no window opens f

Re: [R] rgl not plotting properly

2023-05-05 Thread Jiayue Wang
在 5/5/23 19:15, Duncan Murdoch 写道: On 05/05/2023 6:48 a.m., Jiayue Wang wrote: Thanks Duncan. glxgears works at the terminal; tcltk::tktoplevel() outputs the following: $ID [1] ".1" $env attr(,"class") [1] "tkwin" Jiayue But no window opens for tcltk::tktoplevel()?  Sounds like R isn't

Re: [R] rgl not plotting properly

2023-05-05 Thread Duncan Murdoch
On 05/05/2023 6:48 a.m., Jiayue Wang wrote: Thanks Duncan. glxgears works at the terminal; tcltk::tktoplevel() outputs the following: $ID [1] ".1" $env attr(,"class") [1] "tkwin" Jiayue But no window opens for tcltk::tktoplevel()? Sounds like R isn't seeing your DISPLAY variable. Does S

Re: [R] rgl not plotting properly

2023-05-05 Thread Jiayue Wang
Thanks Duncan. glxgears works at the terminal; tcltk::tktoplevel() outputs the following: $ID [1] ".1" $env attr(,"class") [1] "tkwin" Jiayue 在 5/5/23 16:45, Duncan Murdoch 写道: On 05/05/2023 2:24 a.m., Jiayue Wang wrote: Hi I can't get rgl working. I installed rgl, loaded it, but it seem

Re: [R] rgl not plotting properly

2023-05-05 Thread Duncan Murdoch
On 05/05/2023 2:24 a.m., Jiayue Wang wrote: Hi I can't get rgl working. I installed rgl, loaded it, but it seems all plot3d codes have failed: remotes::install_github("dmurdoch/rgl") library(rgl) open3d() x <- sort(rnorm(1000)) y <- rnorm(1000) z <- rnorm(1000) + atan2(x, y) plot3d(x, y, z, col

[R] rgl not plotting properly

2023-05-04 Thread Jiayue Wang
Hi I can't get rgl working. I installed rgl, loaded it, but it seems all plot3d codes have failed: remotes::install_github("dmurdoch/rgl") library(rgl) open3d() x <- sort(rnorm(1000)) y <- rnorm(1000) z <- rnorm(1000) + atan2(x, y) plot3d(x, y, z, col = rainbow(1000)) I see no plotting at all

Re: [R] rgl terminology: the definitions of "thickness" and "width" in rgl

2020-07-21 Thread Duncan Murdoch
On 21/07/2020 5:00 a.m., Jim Lemon wrote: Hi Byron, As in the help page, three types of arrows can be specified. Actually four types: rotation, extrusion, lines, flat. But the rest of your answer is right. Duncan Murdoch In the "rotation" type, "width" is the parameter that determines t

Re: [R] rgl terminology: the definitions of "thickness" and "width" in rgl

2020-07-21 Thread Jim Lemon
Hi Byron, As in the help page, three types of arrows can be specified. In the "rotation" type, "width" is the parameter that determines the diameter of the cylindrical shaft as a fraction of the "barb", the cone at the end. In the default "extrusion" arrow, "thickness" is the fraction of the "width

[R] rgl terminology: the definitions of "thickness" and "width" in rgl

2020-07-20 Thread Byron Dom via R-help
I'm struggling to come up to speed with rgl. At the moment, I'm struggling with the function arrows3d(). In the R documentation for that, two parameters/arguments are mentioned: "thickness" (of the arrow's shaft) and "width" (of the arrow's shaft).  Naively, I would expect the arrow's shaft unde

[R] rgl 0.100.54 using rgl.setMouseCallbacks in pan3d with rglwidget() and shiny server

2020-05-18 Thread Kennard McDaniel
I am currently attempting to implement rgl and the pan3d function on a shiny server but can't get the pan3d function to work. Using the right mouse button (2).  Here is a little sample code I was using to try to get it to work. Session info below the signature line.  options(rgl.useNULL = T

Re: [R] rgl crash on windows 7

2017-09-28 Thread Duncan Murdoch
On 28/09/2017 7:15 PM, Kevin Wright wrote: I have a co-worker who has installed R 3.4.2 on Windows 7.  When this person tries to load the rgl package with library(rgl) A dialog box appears with the message: R for windows gui frontend has stopped working I suspect a conflict problem with a dll

[R] rgl crash on windows 7

2017-09-28 Thread Kevin Wright
I have a co-worker who has installed R 3.4.2 on Windows 7. When this person tries to load the rgl package with library(rgl) A dialog box appears with the message: R for windows gui frontend has stopped working I suspect a conflict problem with a dll, but I'm not sure how to identify if this is th

[R] rgl does not plot

2017-01-19 Thread George Trojan - NOAA Federal
I have installed package rgl without any problems. I can load the library, issue commands from console without any errors showing up, however I can't get anything plotted. Example session: > library(rgl) > plot3d(rnorm(100), rnorm(100), rnorm(100)) > rgl.quit() > library(rgl) > .check3d() glX 1 >

Re: [R] RGL library loading issues

2016-08-05 Thread David Winsemius
> On Aug 5, 2016, at 1:34 PM, Duncan Murdoch wrote: > > On 05/08/2016 1:04 PM, Adrian Johnson wrote: >> Dear group: >> I installed rgl on my mac through terminal. I used >> install.packages(rgl) and selected 118 server option. >> Installation went well until, I get message checking if installe

Re: [R] RGL library loading issues

2016-08-05 Thread Duncan Murdoch
On 05/08/2016 1:04 PM, Adrian Johnson wrote: Dear group: I installed rgl on my mac through terminal. I used install.packages(rgl) and selected 118 server option. Installation went well until, I get message checking if installed packages working and nothing happens. I opened another terminal wi

[R] RGL library loading issues

2016-08-05 Thread Adrian Johnson
Dear group: I installed rgl on my mac through terminal. I used install.packages(rgl) and selected 118 server option. Installation went well until, I get message checking if installed packages working and nothing happens. I opened another terminal window and types library(rgl) and I see my X11qu

Re: [R] rgl and rglwidget: Weird behaviour than animating lines

2016-06-23 Thread Duncan Murdoch
On 23/06/2016 5:59 AM, Nicole Karakin wrote: I am trying to follow help and Internet examples to create a very simple animation of a 3d-line in R. This is just a test and my final goal is to use this functionality to visually verify results of some geometrical transformations on 3d-movement data

[R] rgl and rglwidget: Weird behaviour than animating lines

2016-06-23 Thread Nicole Karakin
I am trying to follow help and Internet examples to create a very simple animation of a 3d-line in R. This is just a test and my final goal is to use this functionality to visually verify results of some geometrical transformations on 3d-movement data that I am analysing. So basically I need nothin

Re: [R] RGL Problem

2015-11-26 Thread Duncan Murdoch
On 22/11/2015 11:56 PM, Margarette Bayron Arcelay via R-help wrote: Dear List, Im using Rstudio on a macbook pro OS X Yosemite version 10.10.5 and im trying to open the package geomorph but a warning message related to rgl shows up. library(geomorph) Loading required package: rgl Warning mess

Re: [R] RGL Problem

2015-11-24 Thread Stefan Evert
> On 24 Nov 2015, at 13:32, Duncan Murdoch wrote: > >> Perhaps it would make sense always to use the well-known standard XQuartz >> paths on Mac and only consider other locations if explicitly asked for by >> the user? > > If rgl is using non-standard features in its makefiles, let me know wh

Re: [R] RGL Problem

2015-11-24 Thread Duncan Murdoch
Some comments on the second part of your message. On 23/11/2015 7:45 AM, Stefan Evert wrote: On 23 Nov 2015, at 11:50, Duncan Murdoch wrote: The OSX binary version of rgl on CRAN is ancient. You'll need to reinstall it from source for a current one. Since you bring up this point: any c

Re: [R] RGL Problem

2015-11-23 Thread Duncan Murdoch
On 23/11/2015 7:45 AM, Stefan Evert wrote: On 23 Nov 2015, at 11:50, Duncan Murdoch wrote: The OSX binary version of rgl on CRAN is ancient. You'll need to reinstall it from source for a current one. Since you bring up this point: any chance of getting Mac binaries from CRAN again? Y

Re: [R] RGL Problem

2015-11-23 Thread Stefan Evert
> On 23 Nov 2015, at 11:50, Duncan Murdoch wrote: > > The OSX binary version of rgl on CRAN is ancient. You'll need to reinstall > it from source for a current one. Since you bring up this point: any chance of getting Mac binaries from CRAN again? Rgl is a particularly nice tool because of

Re: [R] RGL Problem

2015-11-23 Thread Duncan Murdoch
On 22/11/2015 11:56 PM, Margarette Bayron Arcelay via R-help wrote: Dear List, Im using Rstudio on a macbook pro OS X Yosemite version 10.10.5 and im trying to open the package geomorph but a warning message related to rgl shows up. Whoops, I forgot one thing. The OSX binary version of rgl o

Re: [R] RGL Problem

2015-11-23 Thread Duncan Murdoch
On 22/11/2015 11:56 PM, Margarette Bayron Arcelay via R-help wrote: Dear List, Im using Rstudio on a macbook pro OS X Yosemite version 10.10.5 and im trying to open the package geomorph but a warning message related to rgl shows up. library(geomorph) Loading required package: rgl Warning mess

[R] RGL Problem

2015-11-22 Thread Margarette Bayron Arcelay via R-help
Dear List, Im using Rstudio on a macbook pro OS X Yosemite version 10.10.5 and im trying to open the package geomorph but a warning message related to rgl shows up. > library(geomorph) Loading required package: rgl Warning messages: 1: In rgl.init(initValue, onlyNULL) : RGL: unable to open X11 di

Re: [R] rgl plot rotation with device other than mouse

2015-10-27 Thread Duncan Murdoch
On 27/10/2015 2:35 PM, santiago gil wrote: > Well, I haven't built the device yet, I'm trying to figure out what my > options will be. In the case of plugging in a simple USB trackball, I > suppose it can work with the HID Manager in Mac to customize the signal > from it. > > In general, would it

Re: [R] rgl plot rotation with device other than mouse

2015-10-27 Thread santiago gil
Well, I haven't built the device yet, I'm trying to figure out what my options will be. In the case of plugging in a simple USB trackball, I suppose it can work with the HID Manager in Mac to customize the signal from it. In general, would it be possible to manipulate the plot, say for example, wi

Re: [R] rgl plot rotation with device other than mouse

2015-10-27 Thread Duncan Murdoch
On 27/10/2015 1:38 PM, santiago gil wrote: Hello R, I'm trying to figure out if it would be possible use a device (maybe simply a trackball) separate from the mouse that would have the ability to rotate a 3D plot made with rgl without any buttons. This is to build an interactive "demo"-like piec

[R] rgl plot rotation with device other than mouse

2015-10-27 Thread santiago gil
Hello R, I'm trying to figure out if it would be possible use a device (maybe simply a trackball) separate from the mouse that would have the ability to rotate a 3D plot made with rgl without any buttons. This is to build an interactive "demo"-like piece for which a mouse or trackpad is an unsatis

Re: [R] rgl 3d surface

2015-07-16 Thread S Ellison
> -Original Message- > > I compute its regression surface doing polynomical regression (fit) > > ... > > fit <- lm(z ~ poly(x,2) + poly(y,2)) > > . > > So I want to repressent the surface > > How could I do it? Any idea?? > > You need to write a function f of x and y that produ

Re: [R] rgl 3d surface

2015-07-15 Thread Duncan Murdoch
On 15/07/2015 7:16 AM, AURORA GONZALEZ VIDAL wrote: > Hello. > > I am trying to plot a 3d surface given its equation. The R code is written > in blue. > So, let's say that I have the points x,y,z and I plot them. Also, I compute > its regression surface doing polynomical regression (fit) > > libr

[R] rgl 3d surface

2015-07-15 Thread AURORA GONZALEZ VIDAL
Hello. I am trying to plot a 3d surface given its equation. The R code is written in blue. So, let's say that I have the points x,y,z and I plot them. Also, I compute its regression surface doing polynomical regression (fit) library('rgl') x <- c(-32.09652, -28.79491, -25.48977, -23.18746,-20.889

Re: [R] rgl::writeWebGL( , prefix = , )

2015-02-03 Thread Duncan Murdoch
On 03/02/2015 12:18 PM, David Winsemius wrote: On Feb 3, 2015, at 7:14 AM, Duncan Murdoch wrote: > On 03/02/2015 9:43 AM, keith.jew...@campdenbri.co.uk wrote: >> Dear all, >> >> I am using writeWebGL to create an HTML page containing an interactive 3D plot. It works fine with the default prefix

Re: [R] rgl::writeWebGL( , prefix = , )

2015-02-03 Thread Duncan Murdoch
On 03/02/2015 11:15 AM, Keith Jewell wrote: Thanks Duncan, your suggestions led me to a solution. Perhaps this could be reflected in the help, but I'll leave that decision to you. It comes down to the template. As well as including a single line for each scene containing paste("%", prefix,

Re: [R] rgl::writeWebGL( , prefix = , )

2015-02-03 Thread David Winsemius
On Feb 3, 2015, at 7:14 AM, Duncan Murdoch wrote: > On 03/02/2015 9:43 AM, keith.jew...@campdenbri.co.uk wrote: >> Dear all, >> >> I am using writeWebGL to create an HTML page containing an interactive 3D >> plot. It works fine with the default prefix="" but fails when I specify a >> prefix "f

Re: [R] rgl::writeWebGL( , prefix = , )

2015-02-03 Thread Keith Jewell
Thanks Duncan, your suggestions led me to a solution. Perhaps this could be reflected in the help, but I'll leave that decision to you. It comes down to the template. As well as including a single line for each scene containing paste("%", prefix, "WebGL%"); e.g. %WebGL% or %AWebGL% the ta

Re: [R] rgl::writeWebGL( , prefix = , )

2015-02-03 Thread Duncan Murdoch
On 03/02/2015 9:43 AM, keith.jew...@campdenbri.co.uk wrote: Dear all, I am using writeWebGL to create an HTML page containing an interactive 3D plot. It works fine with the default prefix="" but fails when I specify a prefix "for different scenes displayed on the same web page" (quoting ?write

[R] rgl::writeWebGL( , prefix = , )

2015-02-03 Thread Keith.Jewell
Dear all, I am using writeWebGL to create an HTML page containing an interactive 3D plot. It works fine with the default prefix="" but fails when I specify a prefix "for different scenes displayed on the same web page" (quoting ?writeWebGL). I'm sure I'm misreading the help, and would apprecia

Re: [R] rgl WebGL export

2014-12-01 Thread Duncan Murdoch
On 01/12/2014 4:26 AM, rh...@numberland.de wrote: Dear List members, I would be glad to get some tips on the following topic. I use rgl package to generate a 3D-cube with labeled dots at certain coordinates. After that I try to export the scene as a WebGL application. For this I use the syntax

[R] rgl WebGL export

2014-12-01 Thread rhelp
Dear List members, I would be glad to get some tips on the following topic. I use rgl package to generate a 3D-cube with labeled dots at certain coordinates. After that I try to export the scene as a WebGL application. For this I use the syntax from rgl documentation "writeWebGL" mentioned in

Re: [R] rgl zooming to an arbitrary location

2014-09-01 Thread Gareth Davies
Fantastic -- the pan3d function in the example for rgl.setMouseCallbacks solves the problem. For illustration: ## library(rgl) # Get the pan3d function by running this rgl example [ignore the error caused by not having an open rgl device] example(rgl.setMouseCallbacks) #Mak

Re: [R] rgl zooming to an arbitrary location

2014-09-01 Thread Duncan Murdoch
On 31/08/2014, 11:12 PM, Gareth Davies wrote: > > I have been using rgl to view xyz point clouds containing topographic > data ( with around 10^5 - 10^6 points). > > It's working well aside from one thing: I would like to be able to zoom > into an arbitrary part of the plot. However so far I co

[R] rgl zooming to an arbitrary location

2014-08-31 Thread Gareth Davies
I have been using rgl to view xyz point clouds containing topographic data ( with around 10^5 - 10^6 points). It's working well aside from one thing: I would like to be able to zoom into an arbitrary part of the plot. However so far I could only figure out how to zoom into the centre. See

Re: [R] Rgl: rotation and colorbar

2014-06-19 Thread Duncan Murdoch
On 19/06/2014, 1:00 PM, Céline b wrote: > Hello, > > I'm trying to add a colorbar to a 3d map using rgl. > For this purpose, I draw the map in a similar way of persp3d example : > > lat <- matrix(seq(90,-90, len=50)*pi/180, 50, 50, byrow=TRUE) > long <- matrix(seq(-180, 180, len=50)*pi/180, 50,

[R] Rgl: rotation and colorbar

2014-06-19 Thread Céline b
Hello, I'm trying to add a colorbar to a 3d map using rgl. For this purpose, I draw the map in a similar way of persp3d example : lat <- matrix(seq(90,-90, len=50)*pi/180, 50, 50, byrow=TRUE) long <- matrix(seq(-180, 180, len=50)*pi/180, 50, 50) r <- 6378.1 # radius of Earth in km x <- r*cos(la

Re: [R] Rgl: set trackball behavior

2014-06-11 Thread Duncan Murdoch
On 11/06/2014, 5:02 AM, Céline b wrote: > I would like to set zoom mouse control in rgl in order to redraw the map > with more or less details depending of the zoom coefficient (such as google > maps or openstreetmap do). > > I already tried the rgl.setMouseCallbacks(button, begin = NULL, updat

[R] Rgl: set trackball behavior

2014-06-11 Thread Céline b
I would like to set zoom mouse control in rgl in order to redraw the map with more or less details depending of the zoom coefficient (such as google maps or openstreetmap do). I already tried the rgl.setMouseCallbacks(button, begin = NULL, update = NULL, end = NULL) function but this function

Re: [R] rgl and axes3d() labels

2014-04-24 Thread Alex Reynolds
Or perhaps the documentation could be updated to clear up what works and what doesn't. It seems pretty confusing to put options in the docs that do not work as described. -Alex > On Apr 24, 2014, at 4:05 AM, Duncan Murdoch wrote: > >> On 23/04/2014, 9:02 PM, Alex Reynolds wrote: >> Unfortunat

Re: [R] rgl and axes3d() labels

2014-04-24 Thread Duncan Murdoch
On 23/04/2014, 9:02 PM, Alex Reynolds wrote: Unfortunately, that doesn't help as it removes axis lines. It looks like I can't use segments3d() without knowing what the bounds are of the current axes and I don't know what to call to expose those. Thanks again for your help, though, I appreciate i

Re: [R] rgl and axes3d() labels

2014-04-23 Thread Alex Reynolds
Unfortunately, that doesn't help as it removes axis lines. It looks like I can't use segments3d() without knowing what the bounds are of the current axes and I don't know what to call to expose those. Thanks again for your help, though, I appreciate it. Hopefully this gets fixed in a future releas

[R] rgl and axes3d() labels

2014-04-23 Thread Alex Reynolds
I am making an rgl-based 3d plot. It works fine, except when I try to remove axis value labels and tick marks with axes3d(labels=FALSE, ticks=FALSE): --- rgl.open() offset <- 50 par3d(windowRect=c(offset, offset, 1280+offset, 1280+offset)) rm(offset) rgl.clear() rgl.viewpoi

[R] truncated cone / frustum in R rgl

2014-01-31 Thread Omphalodes Verna
Dear list! Here is a simplified script for cone in RGL (from rgl demos). I would like to draw a truncated cone / frustum using RGL in R. Do you have any suggestion how to modify code? Thanks a lot, OV library(rgl) cone3d <- function(base=c(0,0,0), tip=c(0,0,1), rad=1, n=30) {     trans <- d

Re: [R] rgl snapshot on headless server

2013-09-17 Thread Andreas Maunz
I have now resorted to installing a full X server on the server and run a screen there (i.e. log in a user automatically), whenever the server restarts. Then I can set DISPLAY=:0 before starting R. Not the most elegant solution but it works. Apart from Xvfb not working, I could also not find a VNC

Re: [R] rgl snapshot on headless server

2013-09-15 Thread Duncan Murdoch
On 13-09-15 6:02 AM, Andreas Maunz wrote: The other write* options seem to limited to me. I am looking for a way to obtain a PS, or at least a PNG, since I develop a web application on a server that needs to grab the screenshot and create a written report with it. Starting my Xvfb like this: Xvf

Re: [R] rgl snapshot on headless server

2013-09-15 Thread Andreas Maunz
The other write* options seem to limited to me. I am looking for a way to obtain a PS, or at least a PNG, since I develop a web application on a server that needs to grab the screenshot and create a written report with it. Starting my Xvfb like this: Xvfb :5 -screen 0 640x480x24 -ac +extension GLX

Re: [R] rgl snapshot on headless server

2013-09-11 Thread Andreas Maunz
I am running Xvfb now with -fbdir /some/path and -extension RANDR but rgl.snapshot is still not working. Any other idea? Since I can display the webGL successfully in firefox (so comes out correct), I assume there should be some way of converting it on the server side to some (vector) graphic fi

Re: [R] rgl snapshot on headless server

2013-09-11 Thread Duncan Murdoch
On 11/09/2013 11:44 AM, Andreas Maunz wrote: I am running Xvfb now with -fbdir /some/path and -extension RANDR but rgl.snapshot is still not working. Any other idea? Since I can display the webGL successfully in firefox (so comes out correct), I assume there should be some way of converting

Re: [R] rgl snapshot on headless server

2013-09-10 Thread Duncan Murdoch
On 10/09/2013 10:58 AM, Andreas Maunz wrote: Hi all, I have a shiny app, in which I want to use rgl's snapshot function. I am running Xvfb on my server so that rgl works. I start my shiny app as follows: echo "Checking for Xvfb..." pgrep -U username Xvfb > /dev/null 2>&1 if [ "$?" -gt 0 ]; the

[R] rgl snapshot on headless server

2013-09-10 Thread Andreas Maunz
Hi all, I have a shiny app, in which I want to use rgl's snapshot function. I am running Xvfb on my server so that rgl works. I start my shiny app as follows: echo "Checking for Xvfb..." pgrep -U username Xvfb > /dev/null 2>&1 if [ "$?" -gt 0 ]; then echo "Starting Xvfb..." Xvfb :7 -screen 0

Re: [R] rgl crashes after one successful draw

2013-05-29 Thread Bryan Hanson
Thank you Brian. Yes, problem is on R.app I will send to R-sig-mac. Thanks, Bryan On May 29, 2013, at 11:07 AM, Prof Brian Ripley wrote: > This is most relevant to R-sig-mac. There are two different rgl devices on > OS X, depending how you are running this. One based on X11 and one on >

Re: [R] rgl crashes after one successful draw

2013-05-29 Thread Prof Brian Ripley
This is most relevant to R-sig-mac. There are two different rgl devices on OS X, depending how you are running this. One based on X11 and one on Apple's GL. In particular, are you using command-line R or R.app? I seem to be able to reproduce it using R.app, in which case it is most definite

[R] rgl crashes after one successful draw

2013-05-29 Thread Bryan Hanson
This is really odd, and probably 100% local to me, but I'm at a loss as to a next step. After narrowing things down, here's how to reproduce: library("rgl") showSomething <- function() { open3d() points3d(rnorm(10),rnorm(10),rnorm(10)) axes3d() title3d('main','s

Re: [R] Rgl

2013-04-04 Thread Benjamin Caldwell
Nice, that worked really well. Thanks Duncan *Ben Caldwell* On Sat, Mar 30, 2013 at 1:31 PM, Duncan Murdoch wrote: > On 13-03-30 3:27 PM, Benjamin Caldwell wrote: > >> Dear r users, >> I have two kinds of data I'm trying to represent in Rgl. >> >> The first are measurements of soils: heights,

Re: [R] Rgl

2013-03-30 Thread Duncan Murdoch
On 13-03-30 3:27 PM, Benjamin Caldwell wrote: Dear r users, I have two kinds of data I'm trying to represent in Rgl. The first are measurements of soils: heights, diameters, and centerpoints of each. I would typically represent these in 3d space as cylinders or cones. The second are radar data o

[R] Rgl

2013-03-30 Thread Benjamin Caldwell
Dear r users, I have two kinds of data I'm trying to represent in Rgl. The first are measurements of soils: heights, diameters, and centerpoints of each. I would typically represent these in 3d space as cylinders or cones. The second are radar data of the area under the solids , xyz plus amplitude

Re: [R] RGL 3D plots are flat. Please Help

2013-03-20 Thread Duncan Murdoch
On 19/03/2013 1:12 AM, Ben Bolker wrote: Pascal Oettli ymail.com> writes: > > Hi, > > Try by multiplying "z" by 1000. > > HTH > Pascal Or try using persp3d() instead of rgl.surface() Or follow the call to rgl.surface with a call to aspect3d. (Actually, I generally recommend against using

Re: [R] RGL 3D plots are flat. Please Help

2013-03-18 Thread Ben Bolker
Pascal Oettli ymail.com> writes: > > Hi, > > Try by multiplying "z" by 1000. > > HTH > Pascal Or try using persp3d() instead of rgl.surface() __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the pos

Re: [R] RGL 3D plots are flat. Please Help

2013-03-18 Thread Pascal Oettli
Hi, Try by multiplying "z" by 1000. HTH Pascal On 19/03/13 11:42, Noah Silverman wrote: Oops, that was a type. d is just y. If you want to reproduce, I put the entire matrix, as a csv here: http://pastebin.com/gniyD4Rc Thanks, -- Noah Silverman, M.S. UCLA Department of Statistics 811

Re: [R] RGL 3D plots are flat. Please Help

2013-03-18 Thread Noah Silverman
Oops, that was a type. d is just y. If you want to reproduce, I put the entire matrix, as a csv here: http://pastebin.com/gniyD4Rc Thanks, -- Noah Silverman, M.S. UCLA Department of Statistics 8117 Math Sciences Building Los Angeles, CA 90095 On Mar 18, 2013, at 6:58 PM, Pascal Oettli wr

Re: [R] RGL 3D plots are flat. Please Help

2013-03-18 Thread Pascal Oettli
Hi, Your example is not reproducible. What is "d" in your command? Regards, Pascal On 19/03/13 10:21, Noah Silverman wrote: Hello, I have a matrix of simulated data that I want to plot as a 3D surface using RGL. Have followed the documentation carefully, but my plot only contains a weird

[R] RGL 3D plots are flat. Please Help

2013-03-18 Thread Noah Silverman
Hello, I have a matrix of simulated data that I want to plot as a 3D surface using RGL. Have followed the documentation carefully, but my plot only contains a weird "single slice" of the data. The actual RGL library and dependance seem fine as all of the demo code plots beautifully. The ac

[R] RGL plot not working right..

2013-03-09 Thread C
Hi .. i'm Carey.. trying to figure out how to get this vol surface correct.. not sure where i'm going wrong.. http://pastebin.com/mmA4m4FJ [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/

Re: [R] RGL plot : cex and zlim arguments do not work

2012-11-29 Thread Duncan Murdoch
On 12-11-29 2:49 PM, Stephane Chantepie wrote: yes sorry, When we use this function text3d(1:3, 1:3, 1:3, LETTERS[1:3], cex=1:3) we expect the letters to have different size (increase from 1 to 3). But when I try this code , all the letter have the same size. This problem (to not be able to

Re: [R] RGL plot : cex and zlim arguments do not work

2012-11-29 Thread Stephane Chantepie
yes sorry, When we use this function text3d(1:3, 1:3, 1:3, LETTERS[1:3], cex=1:3) we expect the letters to have different size (increase from 1 to 3). But when I try this code , all the letter have the same size. This problem (to not be able to resize character) occurs with diiferent the text

Re: [R] RGL plot : cex and zlim arguments do not work

2012-11-29 Thread Duncan Murdoch
On 29/11/2012 1:34 PM, Stephane Chantepie wrote: Hi Ducan and others, I am sorry for this such late reply but I did not see that I had a reply... I have not solved the problem text3d(1:3, 1:3, 1:3, LETTERS[1:3], cex=1:3) does not work for me It works for me. Perhaps if you explained what "

Re: [R] RGL plot : cex and zlim arguments do not work

2012-11-29 Thread Stephane Chantepie
Hi Ducan and others, I am sorry for this such late reply but I did not see that I had a reply... I have not solved the problem text3d(1:3, 1:3, 1:3, LETTERS[1:3], cex=1:3) does not work for me Maybe it is related to my material, I am on linux debian Sys.info() sysname "Linux" release

Re: [R] rgl package and animation

2012-11-05 Thread Robert Baer
-- snip -- On 11/4/2012 7:45 AM, Duncan Murdoch wrote: First, draw the new sphere at the first point and save the object id: sphereid <- sphere3d(dat[1,c("X", "Y", "Z")], col="red", radius=1) # Also save the spinner that you like: spin <- spin3d( ) #maybe with different parms # Now, the ani

Re: [R] rgl package and animation

2012-11-04 Thread Duncan Murdoch
On 12-11-03 11:40 AM, Robert Baer wrote: On 11/3/2012 6:47 AM, Duncan Murdoch wrote: On 12-11-02 7:47 PM, Robert Baer wrote: 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

Re: [R] rgl package and animation

2012-11-03 Thread Robert Baer
On 11/3/2012 6:47 AM, Duncan Murdoch wrote: On 12-11-02 7:47 PM, Robert Baer wrote: 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 farthe

Re: [R] rgl package and animation

2012-11-03 Thread Duncan Murdoch
On 12-11-02 7:47 PM, Robert Baer wrote: 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 a

[R] rgl package and animation

2012-11-02 Thread Robert Baer
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).

Re: [R] RGL package surface plot

2012-10-10 Thread S Ellison
> I'm completely new at R... I have sinkhole survey data (lat, long, and > elevation) and have been trying to plot a rotatable 3d plot > for several hours... cannot get it right. You can use loess and predict.loess to generate a fitted 3d surface that can be plotted using contour() and similar.

Re: [R] RGL package surface plot

2012-10-09 Thread Jeff Newmiller
You should help us per the posting guide reproducible sample data, code you have tried that you thought would work, why you think it did not, output of sessionInfo function... Note that you can learn a lot by doing this exercise, your problem may not be where you think it is (or where we mi

Re: [R] RGL package surface plot

2012-10-09 Thread David Winsemius
On Oct 9, 2012, at 5:41 PM, ariklee wrote: > I'm completely new at R... I have sinkhole survey data (lat, long, and > elevation) and have been trying to plot a rotatable 3d plot for several > hours... cannot get it right. Examples I see tend to be grid data (one > elevation value per grid cell);

[R] RGL package surface plot

2012-10-09 Thread ariklee
I'm completely new at R... I have sinkhole survey data (lat, long, and elevation) and have been trying to plot a rotatable 3d plot for several hours... cannot get it right. Examples I see tend to be grid data (one elevation value per grid cell); however, my data are more random (known elevations at

Re: [R] RGL plot : cex and zlim arguments do not work

2012-09-25 Thread Duncan Murdoch
On 25/09/2012 11:07 AM, Stephane Chantepie wrote: Dear all, I have a quiet simple problem (shared by a collegue) but no solution at yet. The arguments I use in bbox3d or text3d do not have any effect on the graph. I need to use 'cex' and 'zlim' but It does not work. Maybe my problem could appear

[R] RGL plot : cex and zlim arguments do not work

2012-09-25 Thread Stephane Chantepie
Dear all, I have a quiet simple problem (shared by a collegue) but no solution at yet. The arguments I use in bbox3d or text3d do not have any effect on the graph. I need to use 'cex' and 'zlim' but It does not work. Maybe my problem could appear trivial but I have spent a lot of time on that. If

Re: [R] RGL plot : lighting problem when triangle3d and persp3d are used in the same plot

2012-08-28 Thread Duncan Murdoch
On 28/08/2012 7:49 AM, Stephane Chantepie wrote: thanks for the reply I am sorry but I do not have any skills in C++ Nevertheless, I found a solution to my problem... By using another package "misc3d" and more precisely the association of the two functions drawScene.rgl and surfaceTriangles

Re: [R] RGL plot : lighting problem when triangle3d and persp3d are used in the same plot

2012-08-28 Thread Stephane Chantepie
thanks for the reply I am sorry but I do not have any skills in C++ Nevertheless, I found a solution to my problem... By using another package "misc3d" and more precisely the association of the two functions drawScene.rgl and surfaceTriangles drawScene.rgl(surfaceTriangles(x,y,z,color="gray",sm

Re: [R] RGL plot : lighting problem when triangle3d and persp3d are used in the same plot

2012-08-27 Thread Duncan Murdoch
On 27/08/2012 1:47 PM, Stephane Chantepie wrote: 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 a

[R] RGL plot : lighting problem when triangle3d and persp3d are used in the same plot

2012-08-27 Thread Stephane Chantepie
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 matr

Re: [R] RGL

2012-07-27 Thread peter dalgaard
On Jul 27, 2012, at 11:05 , Prof Brian Ripley wrote: > On 27/07/2012 09:14, peter dalgaard wrote: >> >> I believe we have seen the R_decompress1 error before, though. If you can >> reproduce it, it might be worth digging deeper --- over on R-sig-Mac. > > It almost always indicates a corrupted

Re: [R] RGL

2012-07-27 Thread Prof Brian Ripley
On 27/07/2012 09:14, peter dalgaard wrote: On Jul 27, 2012, at 03:48 , David Winsemius wrote: On Jul 26, 2012, at 4:46 AM, Guillaume Meurice wrote: Dear all, I was willing to use the library "rgl" to plot some 3D graphics, but unfortunately, I wan't able to instal the library. The error m

Re: [R] RGL

2012-07-27 Thread peter dalgaard
On Jul 27, 2012, at 03:48 , David Winsemius wrote: > > On Jul 26, 2012, at 4:46 AM, Guillaume Meurice wrote: > >> Dear all, >> >> I was willing to use the library "rgl" to plot some 3D graphics, but >> unfortunately, I wan't able to instal the library. The error message is >> below. >> >> I

Re: [R] RGL

2012-07-27 Thread Guillaume Meurice
Dear all, Following the advice of David Winsemius, I've restarted my R session : I was able to load rgl library (rgl_0.92.892) Sorry to have bothered you. Next time, I'll include this step before submitting to R-help ;). Anyway, thanks for support. Bests, = > library(rgl) > s

Re: [R] RGL

2012-07-26 Thread David Winsemius
On Jul 26, 2012, at 4:46 AM, Guillaume Meurice wrote: Dear all, I was willing to use the library "rgl" to plot some 3D graphics, but unfortunately, I wan't able to instal the library. The error message is below. I would be very grateful if you could give me any clues about how I can so

Re: [R] RGL

2012-07-26 Thread Duncan Murdoch
On 12-07-26 7:46 AM, Guillaume Meurice wrote: Dear all, I was willing to use the library "rgl" to plot some 3D graphics, but unfortunately, I wan't able to instal the library. The error message is below. I would be very grateful if you could give me any clues about how I can solve this. I d

[R] RGL

2012-07-26 Thread Guillaume Meurice
Dear all, I was willing to use the library "rgl" to plot some 3D graphics, but unfortunately, I wan't able to instal the library. The error message is below. I would be very grateful if you could give me any clues about how I can solve this. Below you will find : - installation from binaries

  1   2   3   >