Questions tagged [plot3d]

plot3D is a package for use with R that includes functions for visualizing 2-D and 3-D data, including perspective plots, slice plots, surface plots, and scatter plots.

plot3D is an R package that includes functions for visualizing 2-D and 3-D data. Many of the functions are extensions of R’s persp() or image() functions.

The package can be used to make 3D scatter plots, surface plots, slice plots, and to visualize oceanographic data.

Repositories

Vignettes

Related Packages

  • Package (also includes the plot3D() function)
  • Package (Plots a three dimensional (3D) point cloud.)
  • Package plot3Drgl (The 'rgl' implementation of plot3D functions.)
94 questions
1
vote
1 answer

is there a way in gnuplot to give a gif a more specific time title other than time.1, time.2 , time.3?

From an answer given here Gnuplot 3d time animation from data file I changed it a bit adding a filedata 2, now the problem is i have a filedata with column1 column2 column3 column4 time x y z 0 54 …
1
vote
1 answer

Add points to 3D-Function using plot3d in Maxima

I'm plotting the function x^3 + 5xy - y^2 in Maxima. plot3d([x^3+5xy - y^2,[x,-2,12],[y,-2,12]]); The function in 3D What I would like to do is add a point at (0,0,0) to the graph. plot3d([0,0,0],[x,-2,12],[y,-2,12]); runs, but does not actually…
BJU
  • 11
  • 2
1
vote
1 answer

Is there a way to save an rgl 3D plot with high resolution?

I have a 3D plot from plot3d() function in rgl package, but the function rgl.postscript() is not working (the error message says it stopped working for my version of rgl - newest). Is there any other way to save a frame of the 3D plot, and with high…
Fla28
  • 197
  • 11
1
vote
1 answer

Scatter3D add multiple surfaces

I am trying to add multiple surfaces to one scatter3d plot in R. Here is an example from scatter3d documentation: library(plot3D) with (mtcars, { # linear regression fit <- lm(mpg ~ wt + disp) # predict values on regular xy grid …
Kivis
  • 924
  • 2
  • 10
  • 20
1
vote
1 answer

How to plot 3D with legends in rgl (R)

This is what the sample looks like: PC1 PC2 PC3 PC4 clusterNum 1 -3.0278979 -0.9414093 -2.0593369 -0.92992822 6 2 -1.5343149 2.5393680 -0.6645160 -0.42415503 1 3 -3.1827899 …
Yasumin
  • 443
  • 2
  • 8
1
vote
0 answers

WxMaxima: how to plot functions defined on surfaces

Is it possible to plot with WxMaxima a function defined on a surface of R^3? The outcome I would like is to see the surface (say a sphere), colored according to the values that the function takes on it. Thanks in advance.
GG1
  • 11
  • 1
1
vote
0 answers

plot a 3D graph using points in matlab

I am struggling to create a 3D graph using data comming from an array. for example x = [ 12 23 43 89 56 23 15 78 89 56 20 8] y = [ 120 56 69 89 56 15 65 89 70 69 27 10] z = [ 89 56 43 89 56 23 15 63 23 78 36 9] this is sample set of points I…
archille gael
  • 70
  • 1
  • 8
1
vote
1 answer

Python Plot 3D Histogram Hexagon

I'm testing a TOF camera from Broadcom. It has hexagonal pixels. I wish to represent the histogram in 3D as in the utility of the constructor. I tested the vedo library. But I can’t give the values in Z and reorder the cells and trace to the…
1
vote
1 answer

Plotting a simple plane in 3D

I am trying to plot a plane in a 3D environment in the context of a multivariate regression. I have a linear regression polynomial in the form of f(x)=beta_1 + beta_2*x_1 + beta_3 * x_3. Obviously this formula describes a plane in R^3. I would like…
1
vote
1 answer

When creating a 3d histogram in R, using Hist3D from the Plot3D library, the bins don't line up with axis ticks

As my title suggests I am trying to create a 3D histogram using the Plot3D package. The following is a minimum working (or rather not working) example of the problem I'm having: library(plot3D) x = runif(10000)/2 y=runif(10000) cuts = c(0, 0.2,…
Edgecase
  • 13
  • 2
1
vote
2 answers

Plot simplices in 3D in R

I have a list of points and a list of simplices. I would like to plot the simplices in 3D given their vertices. Essentially, I am looking for the equivalent of segment() in 3D. Example Pts<-matrix(c(0,0,0,1,0,0,0,1,0,0,0,1),ncol…
12345
  • 133
  • 4
1
vote
0 answers

Changing the tick labels with plot3D::scatter3D() in R

I'm trying to make a plot like the following using the scatter3D() function in R: So far so good, but I'm struggling to change the tick labels on the axis Variant from 1, 2, 3 to A, B, C. Is there any way to implement this? To create the plot…
bucky
  • 111
  • 5
1
vote
0 answers

How to change the position of axis scale in R using persp3D() function from plot3D?

I am plotting a surface plot using function persp3D(). However, I wanted the zero on my y-axis(k) scale to start at the same zero with my z-axis(R0). Currently, the zero on my y-axis(k) and x-axis(A) starts at the same point. I need the zero on the…
Ella Taib
  • 63
  • 4
1
vote
0 answers

3D trajectory visualization with path in R

I'm looking for an efficient way to plot time, x, y, z with different colors for different objects - to view proximity of the objects over time. plot3D::line3D works with add = TRUE, but it is not very elegant. Here's a sample code that…
Naveen Mathew
  • 362
  • 2
  • 14
1
vote
1 answer

3D plot of regression plane without points in R

dat <- data.frame(nitrogen = runif(50, 0, 10), temperature= rnorm(50, 10, 3)) modmat <- model.matrix(~ nitrogen * temperature, dat) coeff <- c(1, 2, -1, 1.5) dat$soil <- rnorm(50, mean = modmat %*% coeff, sd = 0.5) I'm trying to plot a regression…
locus
  • 387
  • 2
  • 9