
The fact that the labels for Peru and Kuwait overlap is sign of that the line plot is starting to transition to a spaghetti plot. You can also see that Israel is missing several data points in the early 1960s, and that Kosovo is missing data prior to 1981. You can see that richer nations tend to have higher life expectancy than poorer nations. You can see the general trend, which is increasing life expectancy for all countries. The labels for Kuwait and Peru overlap, but otherwise the line plot is easy to read and interpret. The line plot enables you to easily track the rise and fall of life expectancy over time for each of these 10 countries.
#HOW TO EDIT NAME OF PLOT IN SAS JMP SERIES#
Series x= Year y=Expected / group=Country_name break curvelabel Where country_name in ( "China" "Chad" "Croatia" "Israel" "Kosovo" "Kuwait" "India" "Peru" "Sudan" "United States" ) When there are only a handful of stocks, cities, or patients, you can display multiple lines on the same plot and use labels, colors, or patterns to distinguish the individual units.įor example, the following call to PROC SGPLOT creates a line plot of the life expectancy at birth for 10 countries, plotted for the years 1960–2014: The response variable might be the price of a stock, the temperature in a city, or the blood pressure of a patient. The life expectancy data and another that containsĭownload the SAS file that creates all the graphs in this article.Ī line plot displays a continuous response variable at multiple time points. For convenience, I have attached two CSV files, one that contains The data set in this article contains World Bank data about the average life expectancy (at birth) for more than 200 countries.
#HOW TO EDIT NAME OF PLOT IN SAS JMP HOW TO#
This article presents the good, the bad, and the messy about spaghetti plots and shows how to create basic and advanced spaghetti plots in SAS. Like spaghetti on your plate, they can be hard to unravel, yet for many analysts they are a delicious staple of data visualization.


Spaghetti plots are line plots that involve many overlapping lines.
