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

Hi all,

I have produced the attached output ('sas_trend_saipe_state.jpg') below using the 'Graph-N-Go' Interface in SAS 9.2 M3.

Yet, when I used the code below

   title ;

   ODS Graphics on / ANTIALIAS=OFF ;

   PROC SGPLOT data=work.saipesnc_s;

      series x=year y=saepovrtall_pt / group=name lineattrs=(thickness=2);

      yaxis grid valueshint;

      xaxis grid valueshint;

   run;

   quit;

The attached output 'SGPlot4.png' is different!! There are no cut-off!?

What am I doing wrong? How can I show the desired Cut-Off in my joined lines?

Thanks,

Ahmed


sas_trend_saipe_state.jpgSGPlot4.png
1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

BREAK as an option on Series plot will create a skip if there is no data. I'd add a datapoint for year = 2004.5 with missing values for the y value in each group and use that option.

There may be other options in versions after th 9.2 I have.

View solution in original post

1 REPLY 1
ballardw
Super User

BREAK as an option on Series plot will create a skip if there is no data. I'd add a datapoint for year = 2004.5 with missing values for the y value in each group and use that option.

There may be other options in versions after th 9.2 I have.

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
  • 1 reply
  • 772 views
  • 1 like
  • 2 in conversation