BookmarkSubscribeRSS Feed
sfo
Quartz | Level 8 sfo
Quartz | Level 8

Hello,

 

I need to create a plot where there are more than 255 distinct subjects (like a spagethi plot i.e. all subjects overlaid on the same plot).

I am able to write a loop around the symbol statement but do not know how to run the loop for more than 255 symbols (which seems to be the limit). I am using SAS 9.2.

 

Thanks

2 REPLIES 2
RW9
Diamond | Level 26 RW9
Diamond | Level 26

Its really not a good idea.  > 255 distinct lines on a graph is going to be pretty much useless to anyone looking at it as - depending on the size you give - most of the graph will be data - i.e. virtually no whitespace to show difference.  Is this clinical data?  If so it is normaly categorised by some grouping - e.g. treatment group (and mean), timepoint, parameter etc.

MichelleHomes
Meteorite | Level 14

It's a shame you are using SAS 9.2, if you have access to SAS9.4M2 there is a new option in sgplot to help with this... Have a look at @Rick_SAS' recent blog post on spaghetti plots at http://blogs.sas.com/content/iml/2016/06/02/create-spaghetti-plots-in-sas.html

 

Kind Regards,

Michelle

//Contact me to learn how Metacoda software can help keep your SAS platform secure - https://www.metacoda.com

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
  • 2 replies
  • 871 views
  • 0 likes
  • 3 in conversation