Questions tagged [scatter3d]

Three-Dimensional Scatterplots and Point Identification

The scatter3d function uses the rgl package to draw 3D scatterplots with various regression surfaces. The function identify3d allows you to label points interactively with the mouse: Press the right mouse button (on a two-button mouse) or the centre button (on a three-button mouse), drag a rectangle around the points to be identified, and release the button. Repeat this procedure for each point or set of “nearby” points to be identified. To exit from point-identification mode, click the right (or centre) button in an empty region of the plot.

244 questions
1
vote
1 answer

How to plot 3d scatter of population density in many countries over the years?

I have data set with 160 countries and the population density in each country over a period of 12 years. I want to plot it in 3D scatter but I get this error: ValueError: too many values to unpack (expected 3) I have created three lists - for…
Yana
  • 785
  • 8
  • 23
1
vote
0 answers

Disable gradient in scatterplot3d in plotly

Plotting 3d line graph using 'scatterplot3d' in R. Is there a way to display the colours discreetly instead of them blending in together by default? I've looked everywhere in the documentation but couldn't find anything that would allow the colours…
kpv
  • 35
  • 6
1
vote
1 answer

Failed to create a 3rd dimension to 2D dots animation

I have a code that animates dots moving in random directions in a 2D space (x and y axis). I tried to create a 3rd dimension (z axis) using spherical coordinates In order to draw and display the dots in a 3D space, I used the Psychtoolbox function…
Kathia
  • 502
  • 2
  • 7
  • 20
1
vote
0 answers

Is a transpose necessary to MPI SCATTER a 3D array in the right way?

I have a question about scattering data using MPI scatter function. I would like to scatter data in a precise way but I don't know if it is possible by MPI scatter or if I have to transform the data and then scatter. For example I have array size…
Micchaleq
  • 433
  • 1
  • 5
  • 21
1
vote
1 answer

rgl 3D scatterplot - controlling size of spheres from 4th dimension (bubble plot)

I am working on a 3D scatter plot using rgl package in R, with multiple colors for different series. I was wondering if there would be a way to plot a 4th dimension by controlling the size of spheres. I know it's possible with plotly ("bubble…
julien.leroux5
  • 969
  • 7
  • 17
1
vote
1 answer

Python Matplotlib: Shading 3D Scatter Plot

I have a scatter plot of a 3D point cloud (see picture). The green points actually form an extrusion in the shape of a star, the blue is a pentagon etc, but this is very difficult to see. So I would like to have some "shading" of the point clouds.…
Mr Squid
  • 1,196
  • 16
  • 34
1
vote
1 answer

Conver 3D scatter plots to 3D linear plots and separate based on the colours

I have been struggling to plot a 3D chart in R for a while. I think I am very close to what I want. I have asked a question before. What I need to know now is only how to convert the scatterplots with dots to linear. I mean if only I can connect the…
1
vote
1 answer

Change direction of axis title and label in 3dplots in R?

I have a question that might be easy for a person who is expert in R plot. I need to draw 3D plot in R. My data is as follows: df <- data.frame(a1 = c(489.4, 505.8, 525.8, 550.2, 576.6), a2 = c(197.8, 301, 389.8, 502, 571.2), b1 =…
1
vote
1 answer

Stretch axes in plotly 3D plot R

I have a 3D scatter plot (plot_ly) that has all the axes of the same length by default - different scale, of course. I want to stretch along one axis (x), is there a way to do this? Sample code using mtcars: > plot_ly(mtcars, x = ~ wt, y = ~ disp,…
Gautam
  • 2,597
  • 1
  • 28
  • 51
1
vote
1 answer

Plotting spheres around given coordinates in 3D in Matlab

I am working on model of an object sliding on some rough surface consisting of spheres with a small random variance in position. In the graphics I want the spheres to be of a given radius, however when using scatter3 this wont work, the sizes of the…
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
1 answer

Axes Range change dynamically

Does anybody know how can I change axis range in plotly's scatter3D via button click. I use relayout but it doesn't work function updatet() { Plotly.relayout(‘myDiv’, ‘zaxis.range’, [[0, 100]]); } Nothing happens (my range is still [0,1800])
1
vote
1 answer

How to plot a line between two points in a scatter3 plot in MATLAB?

I am using the following code for producing a scatter3 plot: X = [1,2,3,1,2,3,1,2,3,1,2,3,1,2,3]; Y = [0,0,0,20,20,20,40,40,40,60,60,60,80,80,80,]; Z1 = [10,-48.7863,-73.3457, -68.3091, -142.0666,... 12, -35.7863, -23.347,…
Kev1n91
  • 3,553
  • 8
  • 46
  • 96
1
vote
0 answers

Adding a Vertical Plane to a 3d Scatter plot in rgl or scatter3D

I am using the packages rgl and plot3D to plot 3 dimensional data in a scatter plot. my data looks as follows: install.packages("rgl") library(rgl) x <- Kg$GBMVP_SD y <- Kg$GBMVP_Ret z <- Kg$Asset_No K<- as.matrix(Kg$GRN_No) RF<-…
El_1988
  • 339
  • 3
  • 13
1
vote
0 answers

Smooth a scatterplot3D graphs using Rstudio

I have generated the following plot: Using the following code: par(bg="white") Y10= scatterplot3d(WF$`YEAR 1`, WF$ST, WF$D1, grid=TRUE, xlim=c(1,10),ylim=c(0,120),type = "h", pch=".", bg="black" ,xlab="YEAR", ylab="Sales Turnover",…
B.A
  • 11
  • 2