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

How to distribute the same data by grouping in Python

I have a table like below. According to the above table, I want to draw distributions of the features in 3-dimensions. It includes three class such as normal, hyper and hypo. I created the following code for this. %matplotlib inline import…
0
votes
1 answer

3D Scatterplot: Multi Value Plot, coloring by column

I want to perform a 3d scatterplot with a dataframe, which has the following format: df = pd.DataFrame({"Date": ['2021-01-01', '2021-01-02', '2021-01-03', '2021-01-04'], "A_x1": [1, 2, 2, 2], "A_x2": [9, 2, 2, 3], …
0
votes
1 answer

Removing white space around scatter3D plot

From the following code D<-matrix(rnorm(100),10,10) layout(matrix(c(1,2),ncol=1), widths=c(4,1), heights=1.2) scatter3D(D[,1],D[,2],D[,3],colkey = FALSE) plot(D[,1],type="l") I get the following plot here. I would like that the scatter3D plot…
0
votes
1 answer

Remove group labels from car::scatter3d() in R

I have something like this and I want to remove the group labels from the ellipsoids car::scatter3d(x, y, z, groups = group, surface=FALSE, grid = FALSE, ellipsoid = TRUE) Is there a way to remove the group labels because there are overlapping and…
Elli Mak
  • 1
  • 1
0
votes
1 answer

Plot 3D scatter plot from 3D array

I am currently trying to plot a 3D scatter plot by using a 3D array. What I found online about plotting 3D scatter plot looks something like ax.scatter3D(x, y, z) where x, y , z are all 1D array. However, in my case, I am generating an array of…
sttc1998
  • 51
  • 2
  • 10
0
votes
1 answer

Scatter plot with Jzy3d

I am using Jsy3d to draw a 3d scatter plot in Java. However, I noticed that the drawing order of the points seems to be based on the order of the given List of Points, not on the distance to the camera. Is there a way to fix this?
Anton Ballmaier
  • 876
  • 9
  • 25
0
votes
1 answer

3D scatterplot matplotlib, adding color to plot not working?

I am creating a 3D scatter plot resulting from transforming my data using PCA (3 components). I want my data to be color coded against variable 'phi', which is an array of floats , ranging from 0-360 degrees. variables x :[44520,3], phi[44520,1) I…
0
votes
1 answer

How to create a canonical 3d plot in Highcharts?

How would I go ahead and create a something like the JMP Canonical 3D Plot in Highcharts to display three-dimensional spheres of various sizes, with some transparency, while still being able to plot singular values (like the small dots in the image…
Anden87
  • 970
  • 1
  • 9
  • 19
0
votes
1 answer

How to use a colormap with gscatter3 in matlab?

I am trying to create a scatterplot with more than the 8 default Matlab colors, but when I create a colormap I get the error: Error using set Error setting property 'MarkerFaceColor' of class 'Line': Color value must be a 3 element vector. Right now…
Morgan
  • 3
  • 3
0
votes
1 answer

R shiny : combine choice and slider in interactive 3d plot

I would like to produce a 3d scatter plot which is rotatable with the mouse. I am happy to have this with no pop-up window (though this is not a must-have, but makes things easier for now.). I can do this happily with renderRglwidget(). I managed as…
Gerit
  • 195
  • 2
  • 14
0
votes
1 answer

scatter3d(): chol.default(shape) error: leading minor of order not positive definite

I am currently trying to do a principle coordinate analysis (PCoA) in R. I am very new to R and am still trying to learn syntax and code. I was successful in running the PCoA and got it to plot, and am now trying to visualize the PCoA in a 3D space…
Justin
  • 33
  • 5
0
votes
1 answer

How to change point color only in scatter 3d plot using R?

I tried change point color to black in scatter3d plot using R, but failed. It is difficult to view data because the color of the point and the surface color overlap. Could i get some ideas? # scatter plot with regression plane scatter3D(x, y, z, pch…
0
votes
1 answer

How do I make a 3D Scatter Plot but I want an "x" or an "o" depending on a fourth parameter?

Basically, I am making a basketball simulation. I have textfile with over 100,000 simulations. The axes of the 3D scatter plot should take the 2nd,3rd, and 4th columnns (representing 3 different physics parameter) of a basketball. However, there is…
0
votes
0 answers

ax.plot_surface() incorrectly displays surface on top of scatter points

I'm plotting scatter data together with a surface of best fit using ax.plot_surface(): fig = plt.figure(figsize = (7,5)) ax = fig.add_subplot(111, projection='3d') ax.plot_surface(X, Y, Z, cmap=plt.cm.coolwarm, alpha=0.25, edgecolor='black',…
Michael Boles
  • 369
  • 5
  • 15
0
votes
1 answer

TypeError when fitting surface to 3D scatter data using scipy.optimize.curve_fit()

I have a Pandas DataFrame with columns containing x, y, and z-values. import pandas as pd df = pd.DataFrame({'Age': x, 'Mileage': y, 'Price': z}) Using scipy.optimize.curvefit() I'm able to fit a univariate…
Michael Boles
  • 369
  • 5
  • 15