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
5 answers

Creating a scatterplot for each value of the first column in an r dataframe

Using the file below, I am trying to creating 2 scatterplots. One scatterplot compares the 2nd and 3rd column when the first column is equal to "coat" and the second scatterplot compares the 2nd and third column when the first column is equal to…
Sam
  • 1,765
  • 11
  • 82
  • 176
1
vote
1 answer

Scatterplot Matrices - Attributes (R)

I'm new to R and I have been experimenting with different data visualization techniques. I was trying out scatter-plot matrices and this is my code scatterplotMatrix(~Salary+Percent_MBA+Percentile_ET, data = placedET, …
Kazza
  • 11
  • 3
1
vote
1 answer

How to achieve this same effect in the dots being plotted using ggplot2?

I am plotting a chart using ggplot2 in R. I have the same scatter-plot made using Excel and I really like the aesthetics of the dots plotted in Excel see image below). My ggplot2 codes currently stand as follows: ggplot(mydata2, aes(TotalStay,…
user3115933
  • 4,303
  • 15
  • 54
  • 94
1
vote
1 answer

How to adjust the 'c' parameter in the Matplotlib.Axes.scatter method?

I want to draw a scatterplot with the colormap of my choice. My code: # Create a scatter plot. scatter = axes[1][1].scatter( fourth.VALP, # First value to use. fourth['TAXP'].map(taxp_convert), # Second value. s = fourth['WGTP'].map(MinimizeSize), #…
1
vote
1 answer

Passing data with onclick

I have a C3 xy chart, that I'm trying to add an onclick to. The onclick is commented out (lines 58-70) in the attached fiddle. Scatter Fiddle The chart does not show when I have the onclick code included, somewhere I've messed up the syntax. var…
1
vote
1 answer

Getting value error on scatter() of mplot3d : arguements xs and ys must be of the same size. But they have the same size

I am trying to plot a scatter plot using mplot3d but the scatter method gives me value error: 'xs' and 'ys' must be of the same size. When I print their types and sizes, they appear perfect. I am unable to figure out whats wrong. Here is the part of…
1
vote
1 answer

console error when changing line color in a HighCharts scatterplot

I've adopted this solution to change the line color when hovering a series in a HighCharts scatterplot (JSFiddle demo here): $(function () { $('#container').highcharts({ chart: { type: 'scatter', }, …
tic
  • 4,009
  • 15
  • 45
  • 86
1
vote
0 answers

Scatterplot is freezing my browser in R/Plotly

I am plotting close to 37k points with Plotly/R via shiny and it takes around 40-45 seconds to display and Firefox goes to not responding state while it renders. Is there any solution? Attaching profvis screenshots:
Devharsh Trivedi
  • 561
  • 8
  • 23
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

ggplot: How to draw contour line for 2d scatter plot to outline the data points

I need to draw a line around all of my data points that plot within x-y space. I do not need 2d density distribution. See the picture attached (the field was just drawn manually). Thank you. scatter plot with line around data points
davidz
  • 13
  • 5
1
vote
1 answer

How do I add a permanent label for selected markers using the scatter plot chart in Spotfire?

I have created a scatter plot between two variables in Spotfire and would like to only show labels for the markers that I select. I believe you can do this via the properties however the other markers fade in colour and the labelling is only…
Howeitzer
  • 220
  • 1
  • 2
  • 7
1
vote
2 answers

Improving the readability of the scatterplot in ggpairs, ggplot

I am using the Auto dataset from the ISLR library and the function ggpairs() from gpairs library to create a scatterplot of all possible combinations of variables. My code is the following: data(Auto) setDT(Auto) ggpairs(Auto[, -c("name"), with =…
rf7
  • 1,993
  • 4
  • 21
  • 35
1
vote
1 answer

scatter plot between two different datasets

I have two different datasets. Two different data frames. I would like to generate scatterplot for this. Dataset1: MT NUM D 103 M 67 D 90 W 456 MM 78 M 434 Dataset2: MT NUM M 13 M 6 MM 9 W 45 D 7 Scatterplot should look…
beginner
  • 1,059
  • 8
  • 23
1
vote
1 answer

scatter plot pandas one variable on x axis and y axis is dataframe index

I want to make a scatter plot in pandas the x axis is the mean and the y axis should be the index of data frame , but I couldn't proceed this is my code I got a lot of errors . y=list(range(len(df.index))) df.plot(kind='scatter', x='meandf', y …
sunny
  • 253
  • 1
  • 5
  • 15
1
vote
2 answers

Logical order in R to create column in data frame and fill it with information

I've got a df with the following column among others (with superpopulations ID). it's colname is Superpop: EUR EUR EUR AMR AMR AFR AMR AFR EUR SAS EUR ... and I need (for later using scatterplot3d) to build another column, let's say the column…
msimmer92
  • 397
  • 3
  • 16