BookmarkSubscribeRSS Feed
data_null__
Jade | Level 19

I have this code with IMAGEFMT=EMF.  Is there a way to have my EMF and broken axis too?

 

   proc sgplot data=analysis;
      series x=avisitn y=estimate / group=trt01pn GROUPDISPLAY=CLUSTER break markers CLUSTERWIDTH=&cw name='a';
      highlow x=avisitn high=UCLMean low=LCLMean / group=trt01pn GROUPDISPLAY=CLUSTER CLUSTERWIDTH=&cw lineattrs=(pattern=1) LOWCAP=SERIF HIGHCAP=SERIF;
      xaxis values=(0 2 8 10 12) ranges=(0-2.5 7.5-12) display=(nolabel);
      yaxis values=(-90 to 40 by 10) label='Percent Change from Baseline';
      keylegend 'a' / title='';
      xaxistable n / location=outside class=xtrt01pn colorgroup=trt01pn title='';
      format avisitn xweek. trt01pn xtrt. xtrt01pn x2trt.;
      run;
2 REPLIES 2
Jay54
Meteorite | Level 14

Yes, there are some issues with rendering the default broken axis break region with EMF, due to lack of some clipping shapes.  You can try changing the  AXISBREAK option (= SQUIGGLE | BRACKET | NOTCH | SLANTEDLEFT | SLANTEDRIGHT | SPARK | Z) to BRACKET to see if that will work.  The break will be shown only on the axis only.

data_null__
Jade | Level 19

@sanjay_SAS wrote:

Yes, there are some issues with rendering the default broken axis break region with EMF, due to lack of some clipping shapes.  You can try changing the  AXISBREAK option (= SQUIGGLE | BRACKET | NOTCH | SLANTEDLEFT | SLANTEDRIGHT | SPARK | Z) to BRACKET to see if that will work.  The break will be shown only on the axis only.


I tried that but I still got the message and no EMF.  I was able to produce an acceptable EMF version by switching X axis to TYPE=DISCRETE and annotating \\ on the X axis between weeks 2 and 8.

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
  • 653 views
  • 0 likes
  • 2 in conversation