Skip to Main Content
Hands-On SAS for Data Analysis
book

Hands-On SAS for Data Analysis

by Harish Gulati
September 2019
Beginner to intermediate content levelBeginner to intermediate
346 pages
7h 35m
English
Packt Publishing
Content preview from Hands-On SAS for Data Analysis

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Big Data Analytics with SAS

Big Data Analytics with SAS

David Pope, Subhashini S Tripathi
An Introduction to SAS Visual Analytics

An Introduction to SAS Visual Analytics

Tricia Aanderud, Rob Collum, Ryan Kumpfmiller

Publisher Resources

ISBN: 9781788839822Supplemental Content