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

ggplot x axis for year

The following are my r code for the scatterplot. library(tidyverse) Pop <-c(24039274, 24854892, 25718048, 26624820, 27568436, 28543940, 29550662, 30590487, 31663896, 32771895) Popu <- data.frame(Year = 2000:2009, lpop = log2(Pop)) ggplot(Popu,…
score324
  • 687
  • 10
  • 18
1
vote
2 answers

Scatterplot in R with ggplot2:

I have the following data set. > y DF GE 2006-12-21 -0.0004659447 -0.009960682 2006-12-22 -0.0009323238 -0.005295208 2006-12-26 -0.0032661785 0.003726377 2006-12-27 0.0042131332 0.002121453 2006-12-28 -0.0009323238…
AJGronevelt
  • 551
  • 1
  • 6
  • 22
1
vote
2 answers

VBA for loop using the counter integer to retrieve content from cells

I'm really a beginner with VBA macros and their syntax so bear with me please. I have been trying to assign content from specific cells to labels in a scatter plot. Started out by recording my own manual assignment and "cleaning" that code. Works…
T. Buc
  • 11
  • 2
1
vote
1 answer

Scatter plot or dispersion plot in R

Okay, so I want to have a single plot where I would have a "x" number of novels and we would be able to see the dispersion of a particular word throughout all novels. Every novel has a different length (number of total words), so the "x" axis would…
1
vote
1 answer

plotly.figure_factory.create_scatterplot stopped working?

I was using plotly to try some things and then found that create_scatterplot is the only package that doesn't work. I mean, it clearly is in the module, as it appears when you call the help command: NAME plotly.figure_factory FILE …
1
vote
1 answer

Scatter plot with two colors

I need to color half of an array one color. Suppose I have 2 arrays that I concatenate arr1 = [[1,2, 3,4]] arr2 = [[1,2, 3,4]] arr 3 = np.concatenate((arr1, arr2), axis=0) plt.scatter(arr3[:,0], arr3[:,1], c= ???) This is an…
1
vote
1 answer

Change direction of axis title and label in 3dplots in R?

I have a question that might be easy for a person who is expert in R plot. I need to draw 3D plot in R. My data is as follows: df <- data.frame(a1 = c(489.4, 505.8, 525.8, 550.2, 576.6), a2 = c(197.8, 301, 389.8, 502, 571.2), b1 =…
1
vote
2 answers

how do i create a scatter plot with 2 1-D arrays?

my only objective is to create a scatter plot with only x and y axes. the data source should be from a 1 dimensional array. say i have these arrays: x() as Object ' for x axis values y() as Object ' for y axis values and i have this…
maohvlean19
  • 29
  • 3
  • 8
1
vote
1 answer

Remove long row of data points in Matlab

I have a list of coordinates, coord, which looks like this when plotted: I want to remove the long string of points that goes completely from 0 to 1 from the data set, shown on this plot starting at (0, 11) and ending at (1, 11) and the other one…
kmarx
  • 15
  • 6
1
vote
2 answers

Error running ggscatter function in R

While running a scatter plot (ggscatter) the system throws up this error: Error in [.data.frame(data, , x) : undefined columns selected The code is below: mydata<-data.frame("eng_score" = 1:99, "53_target_pre_mover_2_0_model" =…
Aditya Dev
  • 23
  • 1
  • 2
  • 7
1
vote
1 answer

Unable to Plot using Seaborn

Hi there My dataset is as follows username switch_state time abcd sw-off 07:53:15 +05:00 abcd sw-on 07:53:15 +05:00 Now using this i need to find that on a given day how many times in a day the switch…
Jeff
  • 69
  • 9
1
vote
2 answers

How to give the markers in the pyplot scatter plot a custom RGB color?

I'm using the scatter function from the matplotlib.pyplot library to visualize certain data in a 3D scatter plot. This function, Link to documentation , has an argument called 'c' which can be used to give the marker a particular color. They note…
Mauricio Paulusma
  • 43
  • 1
  • 1
  • 10
1
vote
0 answers

Writing a text with scatter plot points

Ok, this is a bit of a funky idea, but is it possible to generate a dataset of points that, when plotted, display a desired text? I remember seeing this somewhere, but have no idea how to do it.
Qubix
  • 4,161
  • 7
  • 36
  • 73
1
vote
1 answer

R - Make a scatterplot look like a dotplot with counts above and below zero

I'm just learning with R so there's probably an easier way to do this. I have a table of data that shows a set of stores with their change in market share over the same period a year ago. I've included a link to the first two periods worth of…
Brad
  • 41
  • 3
1
vote
2 answers

Matplotlib scatter plot gives ValueError(msg.format(c.shape, x.size, y.size)) when specifying colors

Im stuck on an assignment where they have us use data from https://raw.githubusercontent.com/Geoyi/Cleaning-Titanic-Data/master/titanic_original.csv Using matplotlib I need to: Create a scatterplot with the Fare paid and the Age, differ the plot…