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

Looping scatter plot colors

How can scatter plot color be looped? my code: col = {'Male':'green','Female':'blue'} gender = [‘Male’,’Female’,’Male’,’Male’,’Female’, …] Matched_Days = [list of days…] Marital_Status = [list of statuses…] for type in…
Adam Schroeder
  • 748
  • 2
  • 9
  • 23
1
vote
0 answers

ggplot legend for color shows dot instead of bar

documentFracation <- c(0.164, 0.196, 0.102, 0.166, 0.145, 0.017, 0.144, 0.258, 0.139, 0.019, 0.155, 0.013, 0.001,0.099,0.007) tsSTDCommoncrawl <- c(19,21,23,30,33,34, …
yuhengd
  • 343
  • 3
  • 10
1
vote
1 answer

Scatterplot matlab

I have some problems with a scatter plot. I am plotting a matrix containing grades per assignment for students e.g. [assignments x grades], but if more than one student gets the same grade in the same assignment, the points will be on top of each…
Ryan
  • 53
  • 6
1
vote
1 answer

How can I clip a trendline on a d3 scatterplot chart?

I have a scatter plot which shows a trendline/average line based on the data provided. The only problem is that the trendline bleeds into the y axis label (see picture). Here is my d3 code, how can I "trim" the trendline to fit only the plotted…
Kode_12
  • 4,506
  • 11
  • 47
  • 97
1
vote
1 answer

Python: Scatterplot column names

I'm trying to manipulate my dataframe so that the column names (ex Monday, Tuesday) can be used in the x-axis of the seaborn scatterplot (shown below). Right now I have this: week Sun Mon Tues Wed Thur Fri Sat 0 2016-05-08 0 …
1
vote
1 answer

I am using the R function pairs() and I want to create scatterplots against one specific column

I am using these lines of code to generate scatterplots between all the combinations of the columns of data: air . Is there any way to choose all the combinations of columns with a specific column? For example if we have 5 columns, I want only the…
1
vote
2 answers

how to calculate the slope of a smoothed curve in R

I have the following data: I plotted the points of that data and then smoothed it on the plot using the following code : scatter.smooth(x=1:length(Ticker$ROIC[!is.na(Ticker$ROIC)]), y=Ticker$ROIC[!is.na(Ticker$ROIC)],col = "#AAAAAA", ylab =…
ForeverLearner
  • 179
  • 1
  • 4
  • 12
1
vote
0 answers

Creating a 3D reaction norm plot

I have a data frame that looks like this but larger: surv line stage temp col 0.96144958 149 Adult 18C white 0.9775 208 Adult 18C black 0.779635363 301 Adult 18C blue 0.43 149 Larva 18C…
Melderon
  • 365
  • 1
  • 16
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

Plot timeseries scatterplot

I have below data - ProductName 01/01/2016 01/07/2016 01/14/2017 ABC 12 34 51 XYZ 9 76 12 PQR 12 23 7 DEF 54 …
ComplexData
  • 1,091
  • 4
  • 19
  • 36
1
vote
0 answers

dc.js scatter plot where y is count of category and value x

trying to figure out dc.js scatter plot and getting hung up on structuring the inital data for it I think var data = [ { category: 'A', processVersion: 6}, { category: 'A', processVersion: 6}, { category: 'A', processVersion: 8}, { category: 'A',…
Justin
  • 4,461
  • 22
  • 87
  • 152
1
vote
1 answer

use ggplot 2 to scatterplot/boxplot for weight and height variable in a research

I am going to figure out some graphs including scatterplots between height and weight variables at different time points boxplots of the continuous variable against sex Graphs showing the trend in weight gain or height increase over time. The…
Suxi Zheng
  • 35
  • 5
1
vote
1 answer

How to find the circles consisting of points in a scatter diagram?

Here is a scatter diagram. It is obvious that some points are on their corresponding circle and some are not. How to find the circles and the coordinates of their centers?
1
vote
1 answer

Add glyphs to a bokeh plot after it is rendered in the Jupyter Notebook

I'm trying to create a dashboard in the Jupyter Notebook with an interactive bokeh plot and ipywidgets as widgets for controlling the plot. My use-case is a little bit complicated because I want to create a plot with different markers that designate…
1
vote
1 answer

Simple scatter plotter with Jzy3d (Java)

I'm trying to write a plotter class to display a set of data points (x, y, z) stored in an array using Jzy3d. The class should contain a method plot() that takes the data set and (automatically) displays it in a 3d coordinate system.The method is…
FizzleDizzle
  • 187
  • 11
1 2 3
99
100