Adding values to scatter chart in excel
Creating color-coded scatterplots in Excel: a nigh.
#ADDING VALUES TO SCATTER CHART IN EXCEL SOFTWARE#
It's a shame that Excel doesn't have a simpler way to generate color-coded scatterplots - almost every other software does. Then keep adding the rest of the categories (continents) as additional series.īesides being tedious, this procedure is quite prone to error, especially if you have many categories and/or many rows. Enter the area on the spreadsheet that corresponds to the next category (America), separately choosing the x column and y column areas. Or equivalently, choose in the Chart Tools Design> Data> Select data. Right-click on the chart and choose "Select Data Source".Choose only the rows that correspond to the first category (say, Africa).Sort your data by the categorical variable (so that all rows with the same category are adjacent, e.g., first all the Africa rows, then America rows, Asia rows, etc.).Here's what you have to do (in Excel 2007, but it is similar in 2003): But adding color or shape, although possible, is very inconvenient and error-prone. It is even not too hard to add size (by changing chart type from X Y (scatter) to Bubble chart). Now let's try creating a similar graph in Excel.Ĭreating a scatterplot in Excel is very easy. It took just a few seconds to generate it. Now, what if we want to compare across continents? We can use color! The plot below was generated using Spotfire. Each country will show up as a point on the scatterplot. We can create a scatterplot with "Happiness" on the y-axis and "Hunger" on the x-axis. For example, say we want to examine the relationship between the happiness of a nation and the percent of the population that live in poverty conditions - using 2004 survey data from the World Database o f Happiness. They get even better when we add the use of color/hue and shape to include information on a third, categorical variable (or we can use size to include information on an additional numerical variable, to produce a "bubble chart"). Scatterplots are extremely popular and useful graphical displays for examining the relationship between two numeric variables.