Re: [R] 3d plot of earth with cut

2020-10-27 Thread Duncan Murdoch
One addition to this thread: I've just committed contourLines3d() to rgl (in version 0.102.28). It will let you display contour lines of a function on any surface in a scene. Duncan Murdoch On 23/10/2020 2:30 p.m., Duncan Murdoch wrote: Good to hear you've made such progress. Just a couple

Re: [R] 3d plot of earth with cut

2020-10-23 Thread Duncan Murdoch
Good to hear you've made such progress. Just a couple of comments: - You should use points3d() rather than rgl.points(). The latter is a low level function that may have unpleasant side effects, especially mixing it with other *3d() functions like persp3d(). - There are several ways to draw a

Re: [R] 3d plot of earth with cut

2020-10-23 Thread Balint Radics
Dear All, Thanks a lot for the useful help again. I manage to get it done up to a point where I think I just need to apply some smoothing/interpolation to get denser points, to make it nice. Basically, I started from Duncen's script to visualize and make the clipping along a plane at a slice. Then

Re: [R] 3d plot of earth with cut

2020-10-22 Thread aBBy Spurdle , ⍺XY
> It should be a 2D slice/plane embedded into a 3D space. I was able to come up with the plot, attached. My intention was to plot national boundaries on the surface of a sphere. And put the slice inside. However, I haven't (as yet) worked out how to get the coordinates for the boundaries. Let me

Re: [R] 3d plot of earth with cut

2020-10-22 Thread Balint Radics
Thanks for your idea. It should be a 2D slice/plane embedded into a 3D space. Could be static, I just need to make a single figure from it for illustration of the Earth together with its interior in 3D. So, the interior would be a slice in 2D along a fixed longitude. And along this 2D slice would b

Re: [R] 3d plot of earth with cut

2020-10-22 Thread Balint Radics
Hello, this is very close to exactly what I need! I have tried it and it works nicely, I just have to map some values onto to the polygon or 2D plane that cuts into the 3D object. Thanks! Balint On Thu 22. Oct 2020 at 21:28, Duncan Murdoch wrote: > On 21/10/2020 8:45 a.m., Balint Radics wrote

Re: [R] 3d plot of earth with cut

2020-10-22 Thread Balint Radics
Hi Thanks a lot for this pointer, I will need to look at it. I did indeed google but did not find an example. In the meantime some additional solutions were suggested, that I also need to try. Cheers, Balint On Thu 22. Oct 2020 at 20:56, Bert Gunter wrote: > 1. Have you looked here: > https://

Re: [R] 3d plot of earth with cut

2020-10-22 Thread aBBy Spurdle , ⍺XY
If you have "value" as a function of latitude and radius, isn't that a 2D (not 3D) scalar field? Which can be plotted using a regular heatmap. If you want a curved edge where depth=0 (radius=?), that's not too difficult to achieve. Not quite sure what continent boundaries mean in this context, but

Re: [R] 3d plot of earth with cut

2020-10-22 Thread Duncan Murdoch
On 21/10/2020 8:45 a.m., Balint Radics wrote: Hello, Could someone suggest a package/way to make a 3D raster plot of the Earth (with continent boundaries), and then make a "cut" or "slice" of it such that one can also visualize some scalar quantity as a function of the Radius/Depth across that g

Re: [R] 3d plot of earth with cut

2020-10-22 Thread Bert Gunter
1. Have you looked here: https://cran.r-project.org/web/views/Spatial.html (I assume you have done some web searches on possible terms like "3D Earth Data R" or whatever) 2. You might try posting on the r-sig-geo list rather than here, where relative expertise may more likely be available. Cheers

[R] 3d plot of earth with cut

2020-10-22 Thread Balint Radics
Hello, Could someone suggest a package/way to make a 3D raster plot of the Earth (with continent boundaries), and then make a "cut" or "slice" of it such that one can also visualize some scalar quantity as a function of the Radius/Depth across that given slice ? Formally, I would have a given, fi

Re: [R] 3D Plot with Date Axis?

2017-10-27 Thread David Winsemius
> On Oct 27, 2017, at 12:22 PM, Alex Restrepo wrote: > > Hello, > > I would like to format the X axis of the plot created via the scatterplot3d > function or any other function which will work. > > Here is an example of what I am trying to do: > > library("scatterplot3d") > > mydf=data.fram

[R] 3D Plot with Date Axis?

2017-10-27 Thread Alex Restrepo
Hello, I would like to format the X axis of the plot created via the scatterplot3d function or any other function which will work. Here is an example of what I am trying to do: library("scatterplot3d") mydf=data.frame(rate=c(1,1,4,4), age=c(2,2,5,5), market_date=c('2017-01-01', '2017-02-02',

Re: [R] 3D plot with coordinates

2017-06-22 Thread Duncan Murdoch
On 22/06/2017 3:15 AM, Alaios wrote: Thanks. So after searching 4 hours last night it looks like that there is no R package that can do this right now. Any other ideas or suggestions might be helpful. I don't know what you want the display to look like, but if you want it to be rotatable, rgl

Re: [R] 3D plot with coordinates

2017-06-22 Thread Alaios via R-help
Thanks. So after searching 4 hours last night it looks like that there is no R package that can do this right now. Any other ideas or suggestions might be helpful.RegardsAlex On Wednesday, June 21, 2017 3:21 PM, Alaios via R-help wrote: Thanks Duncan for the replyI can not suppress an

Re: [R] 3D plot with coordinates

2017-06-21 Thread Alaios via R-help
Thanks Duncan for the replyI can not suppress anything these are radiation pattern measurements that are typically are taken at X,Y and Z planes. See an example here, where I want to plot the measurements for the red, green and blue planes (so the image below withouth the 3d green structure ins

Re: [R] 3D plot with coordinates

2017-06-21 Thread Duncan Murdoch
On 21/06/2017 5:23 AM, Alaios via R-help wrote: Thanks a lot for the reply.After looking at different parts of the code today I was able to start with simple 2D polar plots as the attached pdf file. In case the attachment is not visible I used the plot.polar function to create something like

Re: [R] 3D plot with coordinates

2017-06-21 Thread Alaios via R-help
Thanks a lot for the reply.After  looking at different parts of the code today I was able to start with simple 2D polar plots as the attached pdf file.  In case the attachment is not visible I used the plot.polar function to create something like that.https://vijaybarve.files.wordpress.com/2013

Re: [R] 3D plot with coordinates

2017-06-20 Thread Uwe Ligges
package rgl. Best, Uwe Ligges On 20.06.2017 21:29, Alaios via R-help wrote: HelloI have three x,y,z vectors (lets say each is set as rnorm(360)). So each one is having 360 elements each one correpsonding to angular coordinates (1 degree, 2 degrees, 3 degrees, 360 degrees) and I want to

[R] 3D plot with coordinates

2017-06-20 Thread Alaios via R-help
HelloI have three x,y,z vectors (lets say each is set as  rnorm(360)). So each one is having 360 elements each one correpsonding to angular coordinates (1 degree, 2 degrees, 3 degrees, 360 degrees) and I want to plot those on the xyz axes that have degress. Is there a function or library to

Re: [R] 3D Plot of Convex hull

2013-11-19 Thread David Winsemius
On Nov 18, 2013, at 8:01 PM, wwreith wrote: > I have a data set in which I am trying to plot a convex hull in 3 dim. Below > is a subset of the points I would use. Columns 2,3,4 are my x,y,z > coordinates. I found some ways to plot 2D convext hulls or find a convex > hull for higher dimensions, b

[R] 3D Plot of Convex hull

2013-11-18 Thread wwreith
I have a data set in which I am trying to plot a convex hull in 3 dim. Below is a subset of the points I would use. Columns 2,3,4 are my x,y,z coordinates. I found some ways to plot 2D convext hulls or find a convex hull for higher dimensions, but not how to plot the data. I have have attached an

Re: [R] 3D plot

2013-05-14 Thread Duncan Murdoch
On 14/05/2013 1:10 PM, Amir wrote: Dear all, I need to plot more than one surface in 3D using R. I tried with "persp" function, it produce only one surface. Could you please help me how can I do it? The X and Y axis are the same but I have Z1 and Z2. I want to have both results in one grap

[R] 3D plot

2013-05-14 Thread Amir
Dear all, I need to plot more than one surface in 3D using R. I tried with "persp" function, it produce only one surface. Could you please help me how can I do it? The X and Y axis are the same but I have Z1 and Z2. I want to have both results in one graph. Thanks Amir -- ___

Re: [R] 3D plot RGL

2011-09-08 Thread Jean V Adams
francogrex wrote on 09/08/2011 08:08:19 AM: > > Hi, anyone has experience with 3D plot (ex: in package RGL) I have a > question, I draw a 3D plot of country, year and sales in z axis but when the > type is "h" then it's ok but when I want to link the points and type is 'l' > lines it's a mess Is

[R] 3D plot RGL

2011-09-08 Thread francogrex
Hi, anyone has experience with 3D plot (ex: in package RGL) I have a question, I draw a 3D plot of country, year and sales in z axis but when the type is "h" then it's ok but when I want to link the points and type is 'l' lines it's a mess Is there a way to link the points only in one direction? Fo

[R] 3D plot with it's quadratic approximation superimposed in same plot

2011-05-23 Thread Megh Dal
Dear all, I would like to draw a 3D plot as shown here http://en.wikipedia.org/wiki/File:NaturalLogarithmAll.png, for this function "f = exp[ 1 - x^2 - y^2]" (this function is some arbitrary!). I am aware of different 3D plotting system in R, however it would be great if I can get that kind of

Re: [R] 3D plot

2010-09-26 Thread Ben Bolker
jethi hotmail.com> writes: > hey, is there anybody who can help me? its very urgent because i have to > send my bachelor thesis on monday. pls help me I'm really sorry that you're stuck, but ... waiting until a few days before an important assignment is due and then depending on the gener

Re: [R] 3D plot

2010-09-25 Thread jethi
hey, is there anybody who can help me? its very urgent because i have to send my bachelor thesis on monday. pls help me -- View this message in context: http://r.789695.n4.nabble.com/3D-plot-tp2713818p2713909.html Sent from the R help mailing list archive at Nabble.com. ___

Re: [R] 3D plot

2010-09-25 Thread jethi
hi steve, thnx for ur reply. but my problem is, that i have a matrix as a functions value and as a result i get a single number. so how can i plot this? and it would be nice if u read over my function, because i´m not sure if it correct. anyway thnx regards jethi -- View this message in context

Re: [R] 3D plot

2010-09-25 Thread Steve Lianoglou
Hi Jethi, On Sat, Sep 25, 2010 at 3:42 PM, jethi wrote: > > hey, how can i plot this function??? thanks for ur help I don't really have the time (or inclination, sorry) to look through your code, but if it relates to your subject line, then there are several ways to plot 3d objects in R. You ca

[R] 3D plot

2010-09-25 Thread jethi
hey, how can i plot this function??? thanks for ur help n=1000 m=2 k=n/m N=100 myfun <- function(n, m, alpha = .05, seeder = 1000) { l=matrix(0,nrow=m,ncol=N) for(i in 1:N){ set.seed(i) for(j in 1:m){ x=rnorm(n,0,0.5) y=rnorm(n,0,0.8) l[j,i]=cor((x[(((j-1)*k)+1):(((j-1)*k)+k)]), (y[(((j-1)*k)+1):

[R] 3d plot layout?

2010-09-08 Thread Martin Ivanov
Hello! I would like to ask if R can solve the following problem. I need to produce two 3d plots on a single page, that is to arrange them one above the other. Also, I need to visualize points by means of spheres, pyramids and cubes in the 3d space. Also, I would like to fill these symbols with

Re: [R] 3D Plot

2010-04-24 Thread Jim Lemon
On 04/23/2010 10:51 PM, Ariane C. Böhm wrote: Hi guys of the R-Help-Team!First of all - you do a great job!I've found a lot of your mails in the internet. So I thought it would be a good idea to ask you a question about R.R is new to me, so sorry, if the question is too simple :)I have a matrix.I

Re: [R] 3D Plot

2010-04-23 Thread Duncan Murdoch
On 23/04/2010 8:51 AM, Ariane C. Böhm wrote: Hi guys of the R-Help-Team!First of all - you do a great job!I've found a lot of your mails in the internet. So I thought it would be a good idea to ask you a question about R.R is new to me, so sorry, if the question is too simple :)I have a matrix.I

[R] 3D Plot

2010-04-23 Thread Ariane C. Böhm
Hi guys of the R-Help-Team!First of all - you do a great job!I've found a lot of your mails in the internet. So I thought it would be a good idea to ask you a question about R.R is new to me, so sorry, if the question is too simple :)I have a matrix.I can make a 2D Heatmap of this matrix.My questio

Re: [R] 3D plot

2010-02-21 Thread Duncan Murdoch
On 18/02/2010 11:43 AM, David A.G wrote: Dearl list, can anyone point me to a function or library that can create a graph similar to the one in the following powerpoint presentation? It could be done in rgl with a lot of work. I don't know of a package where someone has already done the wor

Re: [R] 3D plot

2010-02-19 Thread Jim Lemon
On 02/19/2010 03:43 AM, David A.G wrote: Dearl list, can anyone point me to a function or library that can create a graph similar to the one in the following powerpoint presentation? http://bmi.osu.edu/~khuang/IBGP705/BMI705-Lecture7.ppt (pages 36-37) In order to try to explain the graph, t

[R] 3D plot

2010-02-18 Thread David A.G
Dearl list, can anyone point me to a function or library that can create a graph similar to the one in the following powerpoint presentation? http://bmi.osu.edu/~khuang/IBGP705/BMI705-Lecture7.ppt (pages 36-37) In order to try to explain the graph, the way I see it in R terms is something li

Re: [R] 3D plot of following data

2010-02-07 Thread Paul Murrell
Hi Jim Lemon wrote: On 02/02/2010 11:01 PM, walter.dju...@chello.at wrote: Hello R-experts, I am having difficulties with 3D plotting (i.e. the evolution of various forward curves through time). I have two comma seperated files both ordered by date (in the first column) one containing contra

Re: [R] 3D plot of following data

2010-02-03 Thread Jim Lemon
On 02/02/2010 11:01 PM, walter.dju...@chello.at wrote: Hello R-experts, I am having difficulties with 3D plotting (i.e. the evolution of various forward curves through time). I have two comma seperated files both ordered by date (in the first column) one containing contracts (meaning forward

Re: [R] 3D plot of following data

2010-02-02 Thread walter.djuric
a link to the 3D plot data files http://members.chello.at/gwd the files are NG_contracts and NG_values -- mfg WD __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.o

Re: [R] 3D plot of following data

2010-02-02 Thread Uwe Ligges
On 02.02.2010 16:01, walter.dju...@chello.at wrote: Here they are for now for you. And I will put them somewhere in a few minutes and poost the link. No need to do so. If you really want to use 3D plots (which I doubt you really want since you could do better in 2D using dotcharts or so):

Re: [R] 3D plot of following data

2010-02-02 Thread Uwe Ligges
Since your files did not come through the mail list, I'd suggest to put them on some webside and provide a link. Uwe Ligges On 02.02.2010 13:01, walter.dju...@chello.at wrote: Hello R-experts, I am having difficulties with 3D plotting (i.e. the evolution of various forward curves through t

[R] 3D plot of following data

2010-02-02 Thread walter.djuric
Hello R-experts, I am having difficulties with 3D plotting (i.e. the evolution of various forward curves through time). I have two comma seperated files both ordered by date (in the first column) one containing contracts (meaning forward delivery months from YEAR_ & Letter "F" ... January th

Re: [R] 3D plot, rotatable and with adjustable symbols

2009-11-19 Thread Greg Snow
n...@r- > project.org] On Behalf Of Joel Fürstenberg-Hägg > Sent: Thursday, November 19, 2009 2:27 AM > To: r-help@r-project.org > Subject: [R] 3D plot, rotatable and with adjustable symbols > > > Hi all, > > > > I've tried to make a 3D plot, but have run int

Re: [R] 3D plot, rotatable and with adjustable symbols

2009-11-19 Thread Remko Duursma
Try the rgl package. r - Remko Duursma Post-Doctoral Fellow Centre for Plants and the Environment University of Western Sydney Hawkesbury Campus Richmond NSW 2753 Dept of Biological Science Macquarie University North Ryde NSW 2109 Australia Mob

[R] 3D plot, rotatable and with adjustable symbols

2009-11-19 Thread Joel Fürstenberg-Hägg
Hi all, I've tried to make a 3D plot, but have run into some problems. I'd like to have a plot that I can rotate interactively using the mouse, which is possible using the plots3d {R.basic}. However, I would like to change the symbols used as the points, but there's no pch in plot3d().

Re: [R] 3D PLOT

2009-03-27 Thread Duncan Murdoch
On 3/27/2009 9:57 AM, bastian250...@freenet.de wrote: Hello, I would like to create a 3D plot with the following data formats: a <- 1:100 b <- 1:100 c <- matrix(, 100, 100) i.e. c(i,j) = f ( a(i) , b(j) ) each of the 1 elements i,j in matrix c is a function of a(i) and b(j). I would li

[R] 3D PLOT

2009-03-27 Thread bastian2507hk
Hello, I would like to create a 3D plot with the following data formats: a <- 1:100 b <- 1:100 c <- matrix(, 100, 100) i.e. c(i,j) = f ( a(i) , b(j) ) each of the 1 elements i,j in matrix c is a function of a(i) and b(j). I would like to have a,b on the x and z axis and c on the y-axis.

Re: [R] 3d plot

2008-03-31 Thread Uwe Ligges
If you want to plot some surface, use persp(); or wireframe() from package lattice; or persp3d() from package "rgl" or therelike. Uwe Ligges kate wrote: > Hi, > I would like to have 3d plot, and I found that there is a command > "scatterplot3d". x is V, y=sigmaV, and z=TSE (note: After some cal

[R] 3d plot

2008-03-30 Thread kate
Hi, I would like to have 3d plot, and I found that there is a command "scatterplot3d". x is V, y=sigmaV, and z=TSE (note: After some calculation, I update TSE). How could I do to have 3d plot I want? V<-seq(1279,1280,,100) sigmaV<-seq(0.28,0.29,,100) TSE<-matrix(0, length(V),length(sigmaV)) ps

Re: [R] 3d plot with dates on axis

2007-09-24 Thread Duncan Murdoch
On 9/24/2007 10:48 AM, Li, Yan (IED) wrote: > Hi all, > > I'd like to make a 3D plot with dates on one of the axes. For example, > > date1 <- as.Date("2007-01-25") + seq(10) > y <- seq(10) > z <- seq(10) > > I want to plot date1 on one axis, y on the other, and z as the height, > with the points

[R] 3d plot with dates on axis

2007-09-24 Thread Li, Yan (IED)
Hi all, I'd like to make a 3D plot with dates on one of the axes. For example, date1 <- as.Date("2007-01-25") + seq(10) y <- seq(10) z <- seq(10) I want to plot date1 on one axis, y on the other, and z as the height, with the points connected. Any help would be highly appreciated! Yan