BookmarkSubscribeRSS Feed
SASSLICK001
Obsidian | Level 7

I am using SAS 9.4 M3! I am trying to plot scatter plot in which there are many subjects having concentration =0 . Is there any way I increase the marker size based on the number of subjects at the same concentration level!

 

 

4 REPLIES 4
Reeza
Super User
Bubble Plots
DanH_sas
SAS Super FREQ

You can use the SIZERESPONSE option on the SCATTERPLOT to control the size of the markers based on a numeric variable. there are also SIZEMIN and SIZEMAX options you can use to control the sizing limits.

SASSLICK001
Obsidian | Level 7

Thanks Dan!

SIZERESPONSE is for the numeric value  as you said

For Example

scatterplot x=visit y=pcvalue

If I use the SIZERESPONSE = PCVALUE then size of the marker would be based on the value!

What I am looking for is if there are, for example 10 subjects with PCVALUE=100 the current plot is not able to distinguish between one subject and multiple although it looks more thicker!

I explored the JITTER option but not nice ! I just want to control the size based on subjects!

Is there any trick here?

Thanks for all the help!

ballardw
Super User

Summarize the data so you have a single size value for each plotted point perhaps.

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
  • 1067 views
  • 2 likes
  • 4 in conversation