Line plots

We will explore the most basic format of the line plot on a single axis and move on to exploring a few more aspects of this chart in this section. Use the following query to create a line chart where we are interested in finding out the frequency of the Age variable:

Proc SGPLOT Data=Class;  Vline Age;  Title 'Basic Form of Line Chart using SGPLOT';Run;

We get the following plot as the output:

There are only four data points for Age, and the axis has the frequency of each data point. 

The preceding chart only contains one series. We will not get a meaningful output if we use the following similar code for the Class dataset. Let's ...

Get Hands-On SAS for Data Analysis now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.