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
0
votes
1 answer

How can I see dates plot3D in R instead of 5 - digit integers

I make 3d plots in R-studio using library(rgl) package. Almost all looks good as shown in the image except dates format. Whatever I tried to do, it does not display dates in place of integers. Here is the code I used to generate the plots: #…
Adam
  • 155
  • 2
  • 10
0
votes
1 answer

Grayscale sympy plot

I tried to plot two surfaces in one figure, both with sympy, and change the cmap, but it doesn work, it still using de viridis colormap import sympy as sp from sympy.plotting import plot3d from matplotlib import pyplot as plt x = "global" x =…
0
votes
0 answers

How can i get points from a 3D Surface (plot_surface())

Well, the problem I have is the following one. I have data for axis X, Y and Z, and I want to plot the surface. For that I first interpolate/extrapolate to get , more mesh points and then I plot the surface (in Python) with plot_surface() function…
0
votes
0 answers

How to get from many 2d planes a 3d plot?

I'm realy beginner in C# and i have a little bite difficulty with 3D plot in C#. I have alot of X and Y data points. X and Y for each profil make a 2d plot. I want to get all of profils together in 3d plot with constant steps (z). I tried to do…
0
votes
0 answers

Change color plot3d (rgl) at R notebook

I'm trying to change the color using a specific column (characters) with plot3d (rgl), but it don't change color and just show white spheres. I used col=as.numeric() because saw a example with this. The only message I get is NAs introduced by…
0
votes
1 answer

R: plot a plane in 3D

I am trying to add the z=0 plane to a 3D plot. The code I use is library(plot3D) zero = matrix(0, 20, 20) persp3D(x=seq(1,20), y=seq(1,20), z = Delta_B, theta = 20, xlab = "D", ylab = "IR", zlab = "B increment") persp3D(x=seq(1,20), y=seq(1,20), z =…
Manfredo
  • 1,760
  • 4
  • 25
  • 53
0
votes
1 answer

Histogram chart getting cut when using package plot3D

I'm trying to plot a simple histogram using hist3D() from plot3D package using the following code: library(tidyverse) library(plot3D) data(iris) iris=as.tibble(iris) x=c(1,2) y=x z=matrix(rnorm(4,sd=0.5,mean=1),ncol=2,nrow=2) pmat<-hist3D(x,y, …
manzerbredes
  • 310
  • 2
  • 13
0
votes
1 answer

This is my goal: Plot the average of z according to bins formed by x and y in R

So I came across this answer here, and my question is, if I have three variables and I want to use the x and y to create bins, like using cut and table in the other answer, how can I then graph the z as the average of all the variable Z data that…
0
votes
1 answer

cex parameter in the plot3D library

I cannot find any indication on how to use the cex parameter when plotting image2D. It seems the cex parameter does not have any effect. I am able to change the font size of the legend and the axis with the specific cex arguments, but I cannot…
Herman Toothrot
  • 1,463
  • 3
  • 23
  • 53
0
votes
1 answer

Best Way to Plot three vectors in R?

I have a vector of length 10k for each of the variables x and z. For each of the 10k, I have also estimated propensity scores using logit and other methods. So I have another vector that contains the predicted propensity scores. I want to plot…
user52932
  • 155
  • 10
0
votes
1 answer

Changing the distance or rotation of the axis title of a graph relative to the axis itself with plot3D

I draw the graph below using the plot3D package of R. I would like to move a bit the z-axis label ($ f (y1, y2)) off the axis values or leave it in horizontal. Does anyone know how I can proceed? Next the code: library("plot3D") #Function density…
fsbmat
  • 291
  • 3
  • 12
0
votes
0 answers

Generating a 3D surface based on some coordinates and randomly distribute points on it with R

I have a dataset (df) containing a long list of points (each with its own x, y, z coordinates). These points sit on a 3D shape that is roughly rectangular. The surface is derived from image segmentation. I am trying to assess their spatial…
0
votes
0 answers

Positioning axes label in plot3D

I'd like positioning the axes label with package plot3D. In my problem, the axes label are positioned very close to the graphic. I tried to use mtext, but it doesn't work in plot3D. #Original version library(plot3D) x <-…
Wagner Jorge
  • 430
  • 3
  • 15
0
votes
0 answers

Add an additional variable to a matrix and plot them with plot3D (R)

I have a big dataset with x, y, and z and two other variables. I want to plot them in a way that I can make 3D slides out of the data with a 4th (and later also with a 5th) variable as a color index. I am trying to use slice3D() from package plot3D…
IlhameO
  • 35
  • 7
0
votes
1 answer

Which R plot3D color scheme is suitable for printing?

I use plot3D::scatter3D function in order to visualize my 3D dataset. Everything works fine, however, the colors that represent the z-level are barely visible when printed (especially yellow). My code so…
petrbel
  • 2,428
  • 5
  • 29
  • 49