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

Load data from c++ to a QML Scatter3d Item

I am trying to develop a modified version of the example "qmlscatter", available in Qt examples. My intention is to plot a flight trajectory in the 3D environment, by modifying the data points of the "Data.qml" file. The actual coordinates of the…
1
vote
2 answers

Plotting dates in 3D plots R

I am trying to plot date, x and y in a 3D plot in R. (Using RStudio 0.99.903), R (3.3.2), scatterplot3d(0.3-40), rgl(0.98.1) dates = c("2016-11-10","2016-11-20","2016-12-01","2016-12-15","2016-12-30") x = rnorm(5,0,1) y = rnorm(5,1,2) A =…
Susan
  • 11
  • 3
1
vote
0 answers

How to specify a time range and give color values by hour in R on a Plotly 3D scatterplot?

I'm trying to create a 3D scatterplot where X-axis = Time Y-axis = Length Z-axis = Weight I need to have a separate color for each hour of the day and the colors have to make a full circle which means that hour 23 and 00 have to have a similar…
1
vote
0 answers

R 3d plot error with intersecting planes

This has stumped me all day long. Can anyone help me to understand why my data is providing me these plots, which contain intersecting planes alongside of my 3D-scatterplot? The planes occur using all 3 of the methods below. There may be an issue…
braxtonlewis
  • 41
  • 1
  • 8
1
vote
1 answer

scatter3d ellipsoid argument inside shiny R failing

Two steps forward, one step back. The last weeks I've run into a few issues that I could not solve on my own as a self tought user with 1 year experience in R, but fortunatly there are great people on this site that have helped me a lot! First of…
Mark
  • 2,789
  • 1
  • 26
  • 66
1
vote
1 answer

RGL in R Shiny not rotating on left mouse button click

Just a short moment ago my question on how to embed an rgl in shiny was answered by Mike, but we seem to have stumbled into another issue, This is the code example: library(rgl) library(car) library(shiny) cars$time <- cars$dist/cars$speed ui <-…
Mark
  • 2,789
  • 1
  • 26
  • 66
1
vote
1 answer

how to plot lines in 3d graph in R

I have these two 3d graphs made in R, with two different functions: x <- c(0,50,100,150,200,250,300,350,400,450) y <- c(0,50,100,150,200,250,300,350,400,450) z <- c(1,2,1,1,2,1,2,1,2,1) plot_ly(x=x,y=y,z=z) scatterplot3d(x, y, z) I would like to…
lalatei
  • 57
  • 1
  • 8
1
vote
1 answer

Matplotlib 3D Scatter Animate Sequential Data

I've produced the following 3D scatter plot of some accelerometer data: It's pretty basic, but I'm pleased with the way it looks considering this is my first attempt at using Python. Here is the code that I wrote to make this visualization: import…
nickelcap
  • 71
  • 1
  • 11
1
vote
0 answers

How to interpret the surface of scatter3d (car library) when the dependent is binary

I am experimenting with scatter3d from car package. My code is the following: library(car) x <- sample(20 : 100, size = 1000, replace = TRUE) z <- sample (20:100, size = 1000, replace = TRUE) y <- (2/3)*x^(3/2) - (z^2)/6 + x * z/3 - 1 /(x/1000 *…
rf7
  • 1,993
  • 4
  • 21
  • 35
1
vote
2 answers

colvar in scatter3D return error " clim[2] - clim[1] : non-numeric argument to binary operator"

Hallo again dear forum, I am not the best of friends with these 3D plots, and I struggle with simple formatting stuff. Like now, where I can't color my plots from a variable. with(samples3d, { s3d <- scatter3D(MDS2, MDS3, MDS1, pch =…
Mathilde
  • 191
  • 1
  • 11
1
vote
1 answer

R- Multiple 3D scatterplots in one window

I want to plot multiple 3D scatterplots in one window. For example, with 2D scatterplots: # data x1 <- rnorm(10) y1 <- rnorm(10) x2 <- rnorm(10) y3 <- rnorm(10) # two plots side-by-side in one window par(mfrow=c(1,2)) plot(y1 ~ x1) plot(y2 ~ x2) I…
SlowLoris
  • 995
  • 6
  • 28
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

3D Scatterplot function in R with groups

So I've been working on a scatter plot for some data that I have. I used to be able to get the scatter plot function to work, but now I can't and I don't understand what my error is. My data looks has 5 values and a column that assigns each to a…
1
vote
1 answer

R - draw a line in scatterd3 plot

i have a problem in scatterd3plot, i want to draw a line of mean data x and data y, so i have a quadrant line in my plot using scatterd3. but i have no idea how to create a line in scatterd3, i have try search in internet how the solution, but i…
1
vote
1 answer

Resizing 3D scatter plot

I managed to plot a 3D graph using Spyder (Python 3.5). However, the size of the graph is too small. How do I increase the size of the graph so that I can save it as an image file? The below is the code used to plot the graph: from…
Max
  • 15
  • 1
  • 4