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

Adding min and max values as whiskers in ggplot

Sample data dat <- structure(list(year = c(1980, 1981, 1982, 1983, 1984, 1985, 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, …
89_Simple
  • 3,393
  • 3
  • 39
  • 94
1
vote
1 answer

Scatterplot with contour heat overlay using matplotlib

I have a large series of data which includes >200k values. The goal is to show the spread of the data and the rough trend rather than individual points. I would like to add a contour heat overlay, similar to this question, but using matplotlib, and…
L. Marsden
  • 21
  • 1
  • 3
1
vote
2 answers

How to graph "before and after" measures using ggplot with connecting lines and subsets?

I’m totally new to ggplot, relatively fresh with R and want to make a smashing ”before-and-after” scatterplot with connecting lines to illustrate the movement in percentages of different subgroups before and after a special training initiative. I’ve…
1
vote
1 answer

Using R to create a log-log scatter plot of the mean of two sets replicates

I have some RNA seq data for two different cell types (naive and Th1). How would I find the average of the two replicates of each cell type for each gene (the grouping variable) and then plot a log-log scatter graph of these data? My table looks…
1
vote
1 answer

Combining scatterplots

I am trying to combine multiple (four) scatter plots into one figure (but not a scatterplot matrix). I am making the individual scatter plots with the scatterplot() function of the car package. I used to be able to combine the four plots using…
1
vote
0 answers

D3.js / How to draw multi-series plot with an array of data from a JSON file?

I want to program a scatter plot graph like this one https://bl.ocks.org/MettiHoof/raw/4ec91624da6f642004e6167184ff8250/ (with time in axis) But I'm blocked on my data extraction. This is my JSON datas, I need to extract 28 temperatures list and…
1
vote
1 answer

c3 (v4) scatter plot with two sets of data

I have the following csv file to plot two different sets of data: normal and global with its respective regression. Access grade global,Grade_global,Regression_global,Access…
MTT
  • 341
  • 5
  • 17
1
vote
1 answer

dc.js scatterplot is slow with a lot of data - any alternative implementations?

I am using the scatterplot type in dc.js. It does a great job but whenever I go beyond 10k points it becomes very laggy and loses the smoothness I'm used to in dc.js. Is there an alternative implementation of this plot within dc.js or will I have to…
Chapo
  • 2,563
  • 3
  • 30
  • 60
1
vote
1 answer

I want to draw scatterplot in year and month

I have seoul's nonacc(number of total mortality excluding accident) data and their date data. This is the sample of data. data1 have nonacc data and date data. head(data1$date) [1] "2000-01-01" "2000-01-02" "2000-01-03" "2000-01-04" "2000-01-05" [6]…
jiyoung
  • 11
  • 3
1
vote
2 answers

Have subsetted data, need to graph both on the same scatterplot not using ggplot

I know there are heaps of other posts asking the same question but I didn't understand any of the answers because I am 100% new to all of this and don't even understand ggplot yet. I need to plot two graphs onto one without using ggplot, but I'm not…
1
vote
1 answer

Color scatterplot points based on rank

I have a scatterplot of mtcars and I was wondering if there is way to specify the color of the points corresponding to the maximum and minimum mpg values. I guess a broader way to ask the question would be is there a way to assign point color based…
regents
  • 600
  • 6
  • 15
1
vote
2 answers

How to simulate pairs from a joint distribution

I have two normal distributions X and Y and with a given covariance between them and variances for both X and Y, I want to simulate (say 200 points) of pairs of points from the joint distribution, but I can't seem to find a command/way to do this. …
1
vote
1 answer

Coloring scatter plot in terms of an intensity in R

We would like to explain a continuous variable Y in terms of X1,X2,X3,X4,X5 (continuous grades from 0/20 to 20/20). When plotting Y vs. X1, I would like to color the points in terms of the means (X1+X2+X3+X4+X5)/5 to see if the candidates that are…
W. Volante
  • 143
  • 4
1
vote
2 answers

making a dataset of multiple x values in one y value

I have a correlation dataset that looks like this: V1 V2 R2 1 2 0.4 1 3 0.5 3 5 0.3 And i want to convert it to a two-column data in such a way that I would have multiple x (in column V) in one y (in…
1
vote
0 answers

word(s) frequency scatterplot or comparing word clouds in R

I have individual level causes of death data (from the 19th century) and want to compare the frequencies between males and females, either using scatterplots or comparing word clouds. I have manage to do this by using the following command…
Sommerseth
  • 11
  • 2