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-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 898 views
  • 0 likes
  • 2 in conversation