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

R: plot3D scatter3D, is there a coord_fixed() option?

I am doing the same scatter plots in 2D and 3D with ggplot2 and plot3d. I always like to do coord_fixed() in ggplot2 scatter plots when possible, for better readability. Is there a way to do the same in the scatter3D…
DaniCee
  • 2,397
  • 6
  • 36
  • 59
1
vote
1 answer

"...argument 4 matches multiple formal arguments" - 3D surface plot with plot3D

I can't get the scatter3D() function to work in R. I would like to plot a surface but am unable to get the code to run although it is very simple to some I found online. I have tried reading the CRAN code documentation but I can't get anywhere. I…
Leonhard Euler
  • 231
  • 1
  • 7
1
vote
0 answers

Include superscripts and subscripts letters on axis labels with hist3D(), package plot3D

I need help to finish some hist3D() plots using R package plot3D. The problem is that I don't know how to include superscripts and subscripts letters in the axis labels of this kind of plots. I've tried with other codes posted in this side,…
1
vote
1 answer

Setting unified customized color scheme for superimposed plots with the plot3D R package

We need to plot several surfaces in R, invoking one by one the corresponding plotting commands (using plot3D library; but the same applies for any other environment with basic R plot style). Each surface is built from data and contains data in…
astrsk
  • 375
  • 6
  • 20
1
vote
0 answers

3 dimension bar graph using ggplot2 in R

1 2 3 4 5 a 0.1191610537 -0.08086102759 -0.17857896011 -0.30905164818 -0.1157044465 b 0.2672025804 0.06583418857 -0.09765886812 -0.07927341573 0.1997289846 c …
user113156
  • 6,761
  • 5
  • 35
  • 81
1
vote
1 answer

Telling scatter3D from plot3D library to plot the tick labels

I am doing a 3D scatter plot using the scatter3D function of the plot3D library but I can not find the way to give the syntax so that the plot contains the tick labels. My code is the following: library(plot3D) A <- c(0, 1, 0, 1) B <- c(0, 0, 1,…
rf7
  • 1,993
  • 4
  • 21
  • 35
1
vote
1 answer

R: White plot elements on black background

Is there an easy way in R to make all elements of a plot (axes, axis labels, grid lines, tick marks...) colored white with a black background? I've seen some options for making a black background but I don't know how to recolor the plot…
LCM
  • 292
  • 4
  • 14
1
vote
1 answer

How do I plot3d a locfit?

I have variables x,y,z which form a point cloud when plotted by: library(plot3D) plot3d(x,y,z) I did a locfit on them myfit = locfit(y~lp(x,z),maxk=200) I understand that this will give me a curve that goes through the most dense region of…
jjaskulowski
  • 2,524
  • 3
  • 26
  • 36
0
votes
1 answer

Create a an animation of a 3D graph made with `Scatter3D()` and export itas a .gif animated image in R

I am facing an issue: I would like to print a .gif file animated of a 3D graph showing the rotation of the graph with a custom defined rotation angle and speed. So as to make it clear, I place the code of the 3D graph which I…
GiacomoDB
  • 369
  • 1
  • 10
0
votes
1 answer

Truncated text3D when combined with persp3D

I'd like to use text3D with persp3D to rename and format rotated axes' titles, but that of y0 is truncated. Does anyone know why? Thanks for help library(plot3D) par(mfrow=c(1,1), mar=c(2.5,0,0,4)) persp3D(x = x0, y = y0, z = z0, border="black",…
denis
  • 199
  • 1
  • 8
0
votes
0 answers

3D plots with rgl library not showing up (ONLY LINES3D DOESN'T WORK)

I'm new to R world and I was trying to do a pca on a dataset; I used rgl library for 3D plots but when I run my code il plots everithing but lines3d and planes3d. I expected to have a clear result because it was the exact same code as the teacher's…
0
votes
0 answers

Is it possible to overlay a point layer over a polygon layer over a raster layer in R using Rayshader package?

I have several things that I want to combine into one plot. I have a DEM that I want to use as the base, a polygon layer that I want over the DEM and then a point layer over top of that. The idea is that I want to plot everything using Rayshader so…
starski
  • 141
  • 6
0
votes
1 answer

matplotlib 3D plotting. Drawing edges parallel to axes

In 3D plot by default matplotlib draws axes like the first image. How can we draw more edges parallel to the axes like the second or third images. Found out Scidavis default plot type is like the third image.…
0
votes
0 answers

how to disable all quadrants and enable only one in 3D plot quiver

I have the following 3D plot in quiver. My question is that I have 3 lists x,y,z, and the derivatives u,v, and w lists. My question is how can I make only one quadrant visible? which means if x and y are positive, and z is negative only draw the…
Hani
  • 3
  • 2
0
votes
0 answers

In Einsteinpy, how does one plot the output of a single element of a tensor with respect to multiple variables?

I would like to plot a component of the Einstein tensor from a metric in Einsteinpy. In order to get this metric, I used einst=EinsteinTensor.from_metric() and then einst.tensor()[i][j], where i and j are the indices of the component I want to plot.…