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

Stretching axes in perspbox - 3D Plots in R

I have been trying to replicate a 3D graph that I saw on a paper that I read for a class project. I recently posted a question asking about possible ways of plotting it and I received amazing support on that. However, I am still struggling to figure…
Hew123
  • 63
  • 5
0
votes
1 answer

Plotting sympy.Max yields TypeError

I am trying to generate a 3-dimensional plot for a function involving sympy.Max, but I am getting a type-error. Minimum example: import sympy u, v = sympy.symbols("u v", positive=True) f = sympy.Max(0, u*v - 0.5) my_plot = sympy.plotting.plot3d(f,…
Corram
  • 233
  • 1
  • 3
  • 13
0
votes
0 answers

How to scale the points on this plot to a different variable?

I made a Temperature-Salinity plot and need to scale the size of the points to a different variable. A temperature-salinity plot is a plot that takes the temperature and salinity and finds the density and plots it based on three values. In the…
0
votes
0 answers

Scale starting from the middle (center) of the plot in RGL-R

I want to make a color scale that starts in the middle of the figure and goes to the extremities, but i don't know how. color_range = colorRampPalette(c("#480172", "red")) #color_range = colorRampPalette(c("red", "green")) my_colors =…
0
votes
0 answers

How do I have to code to insert data cluster labels on certain points on 3d plot in R, using their coordinates?

Recently I conducted clustering analysis in R and got this table label data PC1 PC2 PC3 1 1 5240 64.5116 12.9746 20.8370 2 2 878 88.7790 45.3952 5.0866 3 3 3368 74.5229 14.2346…
hogu
  • 1
  • 3
0
votes
1 answer

3D colormap from csv file

Recently I have been working on a code and got stuck for days on this error. Basically the program plots a 3D colormap from csv file. I am using Python 3 with…
EL-san
  • 29
  • 4
0
votes
0 answers

Creating a 3D "ribbon" style plot in R

I want to plot the recorded path of an object such as a plane or drone in 3d space using R. The plotted path should be represented by a flat “ribbon” whose orientation perpendicular to the direction of travel changes to reflect the roll of the…
Bregma
  • 1
0
votes
0 answers

How to get a 3D plot for a new function?

I'm trying to get a 3D plot using the code: library(plot3Drgl) library(moments) #PDF function: f = function(x,par){ delta=par[1];theta =par[2]; alpha= par[3] D = (2 * theta * alpha * (x^(alpha-1)) * exp(2*x^alpha) * (1-exp(-x^alpha)) …
Bakang
  • 55
  • 6
0
votes
1 answer

python mathplotlib: 3D plots error: "ValueError: Argument Z must be 2-dimensional."

I'm new at coding but i was wondring why this piece of code isn't working. I get the error: "ValueError: Argument Z must be 2-dimensional." Can someone help solving my problem? Thx S.B. from matplotlib import pyplot as plt import numpy as np from…
0
votes
1 answer

3dPlot display only a subset of points

I'm trying to visualize a data set with rgl library: the data set has dimensions 15927 x 6, and contains scores of a pca transformation. I'm afraid I don't know how to show said data set here, (this is my first question, so please excuse me). I've…
0
votes
0 answers

R: how to plot a 3D interactive plot with confidence intervals?

library(plot3D) data(iris) x <- sep.l <- iris$Sepal.Length y <- pet.l <- iris$Petal.Length z <- sep.w <- iris$Sepal.Width CI <- list(z = matrix(nrow = length(x), data = rep(0.1, 2*length(x)))) par(mfrow = c(1, 1)) scatter3D(x,…
Adrian
  • 9,229
  • 24
  • 74
  • 132
0
votes
1 answer

R Project: Plot a 3d Mesh (grid) using Plot3D package

I'm trying to plot a 3d grid with cuboid elements (transparent using the Plot3D package of R, however I cannot find a good solution. Any suggestions? The objective is to add the 3D grid in a 3d scatterplot using the function scatter3D.
George
  • 23
  • 4
0
votes
1 answer

plot3d - make the perspective of front and back planes equal

I am migrating from gnuplot to R plotting. In gnuplot when a 3d is rotated the front and back of the view line up, making the appearance of 2d plot. In plot3d() the back plane appears narrower than the front plane of the view. So , it appears like…
0
votes
0 answers

3d surf animation with matplotlib

I'm creating 3d surf animation with matplotlib. I'm basing it on matlab code. Here is the whole code: from __future__ import division import numpy as np from pylab import * import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import…
beaten
  • 1
  • 1
0
votes
0 answers

How to add a map on the bottom of a 3D plot in R

In the below example case I would like to have a geographical map plotted on the lat-long -plane underneath the intersecting 2D profiles. The use of packages 'plot3D' or 'maps' is not necessary. library(plot3D) alt <- rev(seq(0, 500, 5)) lat…
Tulse Luper
  • 21
  • 1
  • 4