I am using SAS EG Version 8.3. I would like to create an SG Plot based on two separate values within the same variable (column). Is this possible or do I need to create a dataset for each of the value types that I want? I have posted example data below. I want to have the values for type AC and type A42 to show as separate sets of data on the same plot if possible. My goal is to depict how the two values relate during the experiment.
data contains
ExperimentID TimeStamp Value Type
1 50 14 AC
1 85 14.4 AC
1 100 12.7 A42
1 105 14.1 AC
1 115 12.5 A42
PROC SGPLOT DATA=WORK.SORTED_ID; FORMAT ExperimentID BEST10.; BY ExperimentID; SCATTER X=TIMESTAMP Y=Value / NOMISSINGGROUP GROUP=Type; XAXIS LABEL='Time Elapsed (ms)'; YAXIS LABEL='Value'; RUN;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.