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;
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.
@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.
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.
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.
Ready to level-up your skills? Choose your own adventure.