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

Create A Scatterplot from Pandas DataFrame

I'm working on a Pandas DF question and I am having trouble converting some Pandas data into a usable format to create a Scatter Plot. Here is the code below, please let me know what I am doing wrong and how I can correct it going forward. Honest…
Brandon
  • 25
  • 1
  • 5
1
vote
1 answer

Chart js - Polar Scatter Chart

I'm trying to plot a simple Polar Scatter Plot like this. How do I do it using Chart.js?
Ahmed Fouzan
  • 94
  • 1
  • 10
1
vote
1 answer

How to dynamically add line by taking values through input box

I have created a scatter plot using d3.js version 3. I want to create an input box and whatever value i will pass in that, it should change the position of horizontal line according to that value. var yScale = d3.scale.linear() .range([0 +…
1
vote
1 answer

Set specific shape and color by factor across many graphs

I'm frustrated by this problem, which likely has a very simple answer. I have a large dataset (only a small part is shown here) with variables from different depths in various holes. In the scatterplot, I want the shape and color of each depth to be…
jls
  • 224
  • 2
  • 13
1
vote
1 answer

Callback function for scatter plot

I have the following scatter plot in Matlab: x = linspace(0,3*pi,200); y = cos(x) + rand(1,200); scatter(x,y) The user should now be able to click at a circle in the scatter plot. How can I identify at which circle the user has clicked (i.e. at…
machinery
  • 5,972
  • 12
  • 67
  • 118
1
vote
0 answers

ggplot showing multiple axis unexpectedly

I'm trying to make a scatter plot of the following data: cellines TFs V3 V4 1 A549 ATF3 -63.6777147567198 15.8519394572415 2 A549 BCL3 -61.1807150847571 15.8274988278844 3 A549 BHLHE40 …
Nelly Kong
  • 279
  • 1
  • 2
  • 18
1
vote
1 answer

color issue in scatter plot with matplotlib

this works fine import matplotlib.pyplot as plt import numpy as np y= [1, 2, 3, 4, 1, 2, 3, 4, 1, 2, 3, 4, 1, 2, 3, 4] x= [1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4] area= [0.78, 0.81, 0.78, 0.81, 0.78, 0.81, 0.787, 0.81, 0.99, 0.999, 0.99,…
Mr. Who
  • 157
  • 3
  • 14
1
vote
1 answer

How do I get better date breaks on the x-axis of a scatterlot?

I have got a data frame like this: Days Ahm5 01/06/1961 0.00000 02/06/1961 0.19266 03/06/1961 1.67610 ........ ........ 30/09/1961 5.26514 01/06/1962 0.05200 ......... ........ 30/09/2007 0.866473 Here's the…
ajilesh
  • 299
  • 3
  • 13
1
vote
0 answers

Scatterplots in Plotly/R: Domains and Scales

Why do we need to use AsIs operator (i.e. I(x)) while defining symbols, colors and sizes in plotly graphs? The explanation in the official documentation is rather sketchy and obscure. Let's say, I want to get standard point characters. In the Base…
Simeon Y.
  • 155
  • 9
1
vote
1 answer

Making a bubble chart from a pandas crosstab

I have a pandas dataframe with 4 columns and a few thousand rows. All entries are either True or False. Let's call the dataframe 'df' and the columns 'c0', 'c1', 'c2', and 'c3'. I'm interested in how many rows have each of the 2^4=16 possible truth…
1
vote
1 answer

How to create box plot displaying mean and standard deviation and a scatterplot of points as well

I am attempting to create a box plot displaying mean and standard deviation and a scatterplot of points in the software R by modifying the code below. library(ggplot2) # create fictitious data a <- runif(10) b <- runif(12) c <- runif(7) d <-…
aa kk
  • 19
  • 1
  • 4
1
vote
1 answer

r: pca and plotting observations in principal component space

I perform an express PCA analysis and visualization on a small dataset (20 observations, 17 variables, most of them highly correlated). I use library(psych) with ready-made function principal() doing most job. I got standartized loading matrix.…
astrsk
  • 375
  • 6
  • 20
1
vote
1 answer

Scatter plot legend shows only one variable with color -Pandas Seaborn

I am trying to plot a scatter plot in pandas with seaborn package. I want both of my variables to show in legend, but I am only getting one. Following is a what I did: import pandas as pd import numpy as np from matplotlib import pyplot as…
i.n.n.m
  • 2,936
  • 7
  • 27
  • 51
1
vote
1 answer

How to convert scatterplot matrix into R Plotly

Hi i am using pairs() function. png(file = matrixoutput, width=610, height=360) pairs(df.log[smp,],col=mdl.km$cluster[smp],pch=16) dev.off() it produces the following image ... How can i convert into R…
Qaiser iqbal
  • 306
  • 1
  • 14
1
vote
1 answer

Telling scatter3D from plot3D library to plot the tick labels

I am doing a 3D scatter plot using the scatter3D function of the plot3D library but I can not find the way to give the syntax so that the plot contains the tick labels. My code is the following: library(plot3D) A <- c(0, 1, 0, 1) B <- c(0, 0, 1,…
rf7
  • 1,993
  • 4
  • 21
  • 35