Placing Multiple Plots on One Set of Axes with Different Plotting Symbols - SAS Programming

To help identify which points belong to which plots on a multi-plot output,use the following form of the PLOT statement:

PLOT y_variable*x_variable='plotting_symbol';

where plottingjsymbol is any single character you choose. To use this technique with the previous graph,you write:

Example

PROC PLOT DATA=CLIN_2;
TITLE 'Multiple Plots on One Set of Axes'?
TITLE2 'with Different Plotting Symbols';
PLOT DBP*SBP='D'
HR *SBP='H'/OVERLAY;
RUN;

This PLOT request, with a different symbol chosen to represent each of the relationships, gives you the following result:

Output from Example - Placing Multiple Plots on One Set of Axes with Different Plotting Symbols

Output from Example - Placing Multiple Plots on One Set of Axes with Different Plotting Symbols

Now,you don't have the A, B, C, etc. convention to show you the location of multiple observations, but you can distinguish which points come from DBP by SBP and which come from HR by SBP.The message

Note: 6 obs hidden tells you that some of the plotting symbols represent more than a single data point (but you don't know which ones).Sometimes you just can't have it all!


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

SAS Programming Topics