BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Leo9
Quartz | Level 8

 

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.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Jay54
Meteorite | Level 14

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.

View solution in original post

4 REPLIES 4
Jay54
Meteorite | Level 14

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;

Leo9
Quartz | Level 8

Thanks. I want to control size of only one last marker (for last visit). Is there any option in SGPLOT to do that ? 

DanH_sas
SAS Super FREQ

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.

Jay54
Meteorite | Level 14

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.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 2777 views
  • 0 likes
  • 3 in conversation