Is it possible to control marker size by timepoints ? I want the marker size little bit bigger for the last visit for each patient.
I am using PROC SGPLOT and doing line plot of lab values by visit.
Add a column to your data in which all the values are same (say 1) and the value for the last visit is larger (say 2). use this column with the SIZE= role. You can also use the BRADIUSMIN and BRADIUSMAX options to control the sizing.
GTL SCATTERPLOT has a SIZERESPONSE=num-variable option, so you can size each marker by the value in this column. See GTL documentation. Alternatively, you can use the SGPLOT BUBBLE plot to draw circular markers with size variable.
proc sgplot data=sashelp.class;
bubble x=height y=weight size=age;
run;
Thanks. I want to control size of only one last marker (for last visit). Is there any option in SGPLOT to do that ?
There is a way to do this using discrete attribute maps. To give you a detailed solution, I would need to see your SGPLOT code.
Add a column to your data in which all the values are same (say 1) and the value for the last visit is larger (say 2). use this column with the SIZE= role. You can also use the BRADIUSMIN and BRADIUSMAX options to control the sizing.
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
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.