similar to: 3D-surface colour based on the values of X or Y data points

Displaying 20 results from an estimated 2000 matches similar to: "3D-surface colour based on the values of X or Y data points"

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
2008 Nov 13
1
Surface plotting
Hi, I would like to plot a matrix which comprises 3 columns. So first column should be the x-axis. Second the y-axis and the third one should be the z-axis. I know that I can plot such data using the scatterplot3d, but I would like to have a surface plot like you can do with wireframe and persp. But both, persp and wireframe, want to have x and y as descending data, at least persp. I am not sure
2007 Feb 09
3
two perspective plots in in plot
Dear all, I would like to put two perspective plots into one plot. The help page for ?persp shows how one can add points and lines but not another perspective plot. data(volcano) z <- 2 * volcano # Exaggerate the relief x <- 10 * (1:nrow(z)) # 10 meter spacing (S to N) y <- 10 * (1:ncol(z)) # 10 meter spacing (E to W) ## Don't draw the grid lines : border = NA persp(x,
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
2011 Oct 31
1
3D Graph Surface and single points (eg wireframe with points)
Hallo! ? I just want to make a 3D plot of a surface of a cone and want to plot some single points around. ? I tried wireframe but cannot find how to plot single points ? I tried scatterplot3d but there the surface is not simple to plot. And: How can I rotate the point of view by the z-axis ? I tried persp3d but how can I add some single points? ? Example: ? library(lattice) library(scatterplot3d)
2009 Mar 12
3
can I draw 3D plot like this using R?
hi, all I am looking at R package RGL to draw a colored mesh/surface plot like this one (from matlab). http://www.mathworks.com/access/helpdesk/help/techdoc/visualize/cbar.gif The key features I am looking for is surfaced with grid and color, but not the terrain-like gradient. but I didn't come even close to it after browsing through rgl help file. have anyone drawn something like this
2010 Apr 30
3
3D Surface plot
Dear All, I want to create a surface plot from the data. My data set is consists of x, y and z data. I plotted in very easy way by Excel worksheet as shown in the attached picture. I did some steps in R, but I cannot have the same plot as in Excel worksheet's figure. the R code is x <- c(-1,-0.75,-0.5,-0.25,0,0.25,0.5,0.75,1) y<- c(-1,-0.75,-0.5,-0.25,0,0.25,0.5,0.75,1) z<-
2009 Jan 23
1
3d scatter plot with both error bars and a flexibly fitted surface
Dear R-helpers: I, an entry level R user, wonder how make a 3d scatter plot with both error bars and a flexibly fitted surface. Can anyone eligthen me? Many Thanks in advance. -Sean [[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()
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 <-
2008 Jun 16
2
Plotting 3d data?
Hi all! I'm very new to R, and I'm having trouble figuring out how to go from a file of points that I have to a 3d surface plot of the data. I typically have something like this: X Y Z 0.005 0.023 34.45 0.0035 0.63 28.48 . I've tried looking at the persp and wireframe packages, and the rgl package, but I can't seem to figure out how to
2011 May 12
2
Exporting interactive 3D plots with axes and labels
Hi, I have a question about exporting interactive 3D plots. I use the following code to plot a contour of a trivariate normal distribution: library(mvtnorm) library(rgl) library(misc3d) n=25 x=seq(-3,3,length=n) X=cbind(rep(x,each=n**2),rep(rep(x,each=n),n),rep(x,n**2)) p=array(dmvnorm(X,sigma=diag(3)*0.5+0.5),c(n,n,n)) contour3d(p,x,x,x,level=mean(p)) lim=c(-3,3)
2006 Aug 23
1
rgl package: color of the axes
Hej, When plotting triangles with rgl.triangles and setting the axes afterwards with decorate3d(aspect=TRUE), the axes get the color used for the last triangle plotted. Example: rgl.triangles(c(1,2,3),c(1,2,5),c(1,3,2),col="#55FF55") decorate3d(aspect=TRUE) Using decorate3d(aspect=TRUE,col="#000000") or decorate3d(aspect=TRUE,color="#000000") does not help,
2008 Jun 16
1
surface plotting
I am new to R and what to find out which package would be best to create a surface plot, 2d or 3d if possible. I have a matrix (depth.dat) which has over 15k depth measurements from an ultrasonic corrosion mapping application. These depth measurements only have one axis (x) but I have used Octave and gnuplot providing decent results, but R seems to have a web interface with PERL which is what I
2008 Jul 03
2
Plotting Prediction Surface with persp()
Hi all I have a question about correct usage of persp(). I have a simple neural net-based XOR example, as follows: library(nnet) xor.data <- data.frame(cbind(expand.grid(c(0,1),c(0,1)), c(0,1,1,0))) names(xor.data) <- c("x","y","o") xor.nn <- nnet(o ~ x + y, data=xor.data, linout=FALSE, size=1) # Create an (x.y) surface and predict over all points d <-
2007 Dec 17
1
Axes limits in rgl.surface.
I have looked through the documentation and have not been able to find a way of using an xlim, ylim, or zlim type option on rgl.surface. I know that persp3d has the option, but seems to only be able to expand the axes not reduce them. Is there anyone who has an idea of how to do this? Thank you for your time. [[alternative HTML version deleted]]
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 Jan 30
1
How to collect arrays in an array?
Dear R-Experts, Seek your help. Please let me know how arrays of different sizes can be collected in one array. suppose I want to collect following arrays in one array. How can I do so? array(1): #row=3, #col=4(these columns store data of different types) array(2): #row=6, #col=4 array(3): #row=3, #col=4 .... want to store in Main_array How to define dimensions of Main_array? Thank you.
2009 Feb 05
1
help regarding storing time difference values in same unit?
Dear R-Experts, Seek your help. In a List object e.g. Time_duration[[]], I am storing differece between two time-stamps (start-time and end-time) for a certain event. Time difference does not remain constant for, say, 10 observations. Each time, the time difference is given in different time units: seconds / hours / minutes. Can you please tell me - how I can store the values of time
2009 Feb 08
1
How to print console output statements from within script or function?
Dear R-Experts, Seek your help. I am calling say 20 functions one by one in one script. To reach the end, it takes approximately one hour. While R is performing calculations, I would like to print console output statements to track the progress.(e.g. "Result of function-1 is done") Note: I have already tried "print" however, it did not work. Thank you in advance. Regards,