In this example, you use the point-labeling feature added in Release 6.07.Because the placing of labels can become very complicated, we refer you to SAS Technical Report P-222, Changes and Enhancements to Base SAS Software, Release 6.07 for the details and show you a labeled plot request where all the defaults have been chosen.
Suppose you want to see a plot of SBP (systolic blood pressure) versus HR (heart rate), and you would like to have each data point labeled so that you can see which person generated that data point.The following program accomplishes just that:
ExamplePROC PLOT DATA=CLIN_2;
The values of the variable NAME are used to label the individual data points in this example.To specify a label variable, you follow the plot request by a dollar sign ($) and the name of the label variable.You may also specify a plotting symbol in quotation marks or a variable whose value will be used as a plotting symbol.
Here is the output from the previous code:
Output from Example - Labeling Individual Points
This is a really powerful feature that allows you to identify individual data points on a scatter plot.Obviously,this has limited application with large data sets because there is not enough room to fit all the labels on the plot.
The problems in this chapter all use SAS data set CHAP13 as shown here: X
SAS Programming Related Tutorials
|SASS (Syntactically Awesome Style sheets) Tutorial||R Programming language Tutorial|
SAS Programming Related Interview Questions
|Logistics Interview Questions||SAS Programming,SQL server Interview Questions|
|Clinical SAS Interview Questions||SASS (Syntactically Awesome Style sheets) Interview Questions|
|SQL Server Analysis Services (SSAS) Interview Questions||R Programming language Interview Questions|
|SAS DI Interview Questions||Advanced SAS Interview Questions|
|Base Sas Interview Questions||SAS Macro Interview Questions|
|Clinical Data Management Interview Questions|
Sas Programming Tutorial
Input And Infile
Set, Merge, And Update
Table Lookup Tools
Proc Means And Proc Uimivariate
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.