Questions tagged [scatter-plot]

A scatter plot is a type of data visualization that reveals possible correlations between two variables. Data points are plotted on a two-dimensional plane using Cartesian coordinates. Use this tag if you have a programming question related to scatter plots, such as problems with computing or displaying the data. You should also tag which language or software libraries you are using.

A scatter plot is a type of mathematical diagram that reveals possible correlations between two variables. Data points are plotted on a two-dimensional plane using Cartesian coordinates. Series of points may be colorized to display additional data.

Link:

3562 questions
1
vote
1 answer

Excel VBA macro for extracting column numbers from plots

I often make a lot of scatter plots (column j vs column i) in a single Worksheet. I want to export them as png/jpg files. Each plot would need a sensible file name. I have thought that the file name could be something like plot_[column i]_[column…
user6439024
  • 79
  • 1
  • 1
  • 8
1
vote
1 answer

Pick color or symbol of marker in Plotly r on a group by condition

+----+------+-------+ | Id | Time | Value | +----+------+-------+ | 1 | A | 1 | | 2 | B | 10 | | 2 | C | 3 | | 2 | D | 6 | | 3 | E | 2 | | 4 | F | 9 | | 4 | G | 4 | | 4 | H | 17…
1
vote
1 answer

gnuplot scatter plot of inline points

How can I create a scatter plot using gnuplot where the gnuplot instructions and points are in the same file? I'm looking for something like the following where the first two columns indicate the x,y coords of the point, and the third column…
Jim Newton
  • 594
  • 3
  • 16
1
vote
2 answers

Scatter plot with colors and legends

I am having a hard time trying to create a scatter plot that will show points of different classes with different colors and the corresponding label of the class in the legend. I have 52 samples, 2 features and 3 classes(class 1,2 and 3). The data…
seralouk
  • 30,938
  • 9
  • 118
  • 133
1
vote
1 answer

d3 v4 voronoi find nearest neighbours in a scatterplot svg filled with (dots / circles)

I am trying to find the nearest neighbors in a scatterplot using the data attached below, with the help of this snippet - const voronoiDiagram = d3.voronoi() .x(d => d.x) .y(d => d.y)(data); …
Harshit Laddha
  • 2,044
  • 8
  • 34
  • 64
1
vote
1 answer

Orange data visualiazation scatter plot

There is a parameter "r = 2.23" as a legend to the regression line in scatter plot. What does it mean?
Kanarsky
  • 162
  • 1
  • 10
1
vote
2 answers

Add a median "best fit line" to a scatter plot in r

I would like to add an empirical line of best fit to a scatter plot that is based on the median y for a range of x, eg at x=0.105 would be the y line of the median y's for x in the range 0.100 to 0.110, at x=0.115 would be the y line of the median…
Stephen Clark
  • 573
  • 3
  • 18
1
vote
1 answer

Python scatterplot design - select specific values of a variable for the x axis based on another columns values

I am relatively new to python and am currently trying to generate a scatterplot based off of some data using pandas & seaborn. The data I'm using ('ErrorMedianScatter') is as follows (apologies for the link, I have yet to get permissions to embed…
MDhar94
  • 13
  • 3
1
vote
1 answer

change key letter in legend of ggplot

I generated a scatter plot as follows: library(ggplot2) library(ggrepel) DF <- data.frame(x=runif(20,0,1), y=runif(20,0,1),group=c(rep('x',15),rep('y',5))) for (i in 1:20) …
WJH
  • 539
  • 5
  • 14
1
vote
1 answer

Calculate distances between XY coordinates in two different datasets in R

Consider we have two different datasets: X1 = c(1,2,4,5,1,3,1) Y1 = c(3,5,6,3,1,5,1) df1= data.frame(X1,Y1) X2 = c(2,3,4,3,2,3,2) Y2 = c(3,4,2,6,4,3,4) df2= data.frame(X2,Y2) These data are represented in this scatterplot: I would like to…
antecessor
  • 2,688
  • 6
  • 29
  • 61
1
vote
1 answer

Convert scatterChart into lineChart

I have a scatterChart with too many points in nvd3 that looks like that: It is very computationally intense task for the browser to render a plenty of points, so I want to actually draw an nvd3 lineChart using the [x, y] data that I got. Basically…
Nikita Vlasenko
  • 4,004
  • 7
  • 47
  • 87
1
vote
1 answer

R plotly: not enough granularity for the size of the bubbles?

In the bubble graph generated by the code below, I don't have enough granularity for the sizes of the bubble. There is a ratio of 20,000 between the smallest (size 100) bubble and the largest bubble (size 2,000,000). As a consequence the bubble of…
Sara Mun
  • 73
  • 7
1
vote
1 answer

wpf toolkit scatter chart

I have never been so annoyed with this wpf toolkit. The documentation is just not there! argh. How on earth can you connect the lines in a scatter chart? I need to produce a graph that is linear across multiple series. I prototyped what I need to…
nitefrog
  • 1,760
  • 6
  • 31
  • 59
1
vote
2 answers

Python - Error scatter plotting with Matplotlib: Index out of range

I'm very new to Python, and I have a CSV file with three columns. They represent a transmission time in milliseconds, signal amplitude, and FM radio frequency in kHz. There's a lot of lines, but they look something like this: My task is to find out…
user7939273
1
vote
1 answer

Add Tooltip on Scatter points, error is generated for D3.js Version 4

My question is- I have generated a scatter plot using D3 version 4. Now, I need to add tooltip to points, on mouseover. But, I am getting an error message- "setAttribute is not a function" Can Someone provide me a clue for the same, and check if the…
Kunal
  • 17
  • 7