<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Non breaking spaces and formatting for gaps on an axis in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Non-breaking-spaces-and-formatting-for-gaps-on-an-axis/m-p/443532#M20605</link>
    <description>Hi:&lt;BR /&gt;  Sanjay and the other Graph folks typically answer questions posted in the SAS/Graph and ODS Graphics forum: &lt;A href="https://communities.sas.com/t5/SAS-GRAPH-and-ODS-Graphics/bd-p/sas_graph" target="_blank"&gt;https://communities.sas.com/t5/SAS-GRAPH-and-ODS-Graphics/bd-p/sas_graph&lt;/A&gt; ... so you might get more responses if you posted over there.&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
    <pubDate>Wed, 07 Mar 2018 22:18:28 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2018-03-07T22:18:28Z</dc:date>
    <item>
      <title>Non breaking spaces and formatting for gaps on an axis</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Non-breaking-spaces-and-formatting-for-gaps-on-an-axis/m-p/443446#M20602</link>
      <description>&lt;P&gt;Ive had some inconsistency in applying formatting to the internal, values within a categorical variable that I want to place on an x axis in proc sgplot.&lt;/P&gt;&lt;P&gt;Previous we were discussing how to create non breaking spaces as suggested by :&lt;/P&gt;&lt;P&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2017/10/16/tips-tricks-multiple-blank-categories-axis/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/2017/10/16/tips-tricks-multiple-blank-categories-axis/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I must be doing something wrong in my formatting as every approach I have tried does not implement the required new formats consistently, and we are no getting blank non breaking spaces.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code and datasets were previously shared and would be happy to share again,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Christos&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 18:28:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Non-breaking-spaces-and-formatting-for-gaps-on-an-axis/m-p/443446#M20602</guid>
      <dc:creator>ChristosK</dc:creator>
      <dc:date>2018-03-07T18:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Non breaking spaces and formatting for gaps on an axis</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Non-breaking-spaces-and-formatting-for-gaps-on-an-axis/m-p/443497#M20603</link>
      <description>&lt;P&gt;Data in the form of data steps, code attempted and very explicit descriptions of what is not quite working is helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also the exact SAS release you are using may be needed as many options have been added to the SG procedures with each release.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 20:37:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Non-breaking-spaces-and-formatting-for-gaps-on-an-axis/m-p/443497#M20603</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-03-07T20:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Non breaking spaces and formatting for gaps on an axis</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Non-breaking-spaces-and-formatting-for-gaps-on-an-axis/m-p/443527#M20604</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;I'm working with SAS Studio University Edition, and it is up to date:&lt;/P&gt;&lt;P&gt;First problem is with Formatting:&lt;/P&gt;&lt;PRE&gt;proc format;&lt;BR /&gt;value $Namefmt &lt;BR /&gt;"Age"          ="Age"&lt;BR /&gt;"BMI"          ="BMI"&lt;BR /&gt;"Sex_num"      ="Sex (Male)"&lt;BR /&gt;"CABG_i"       ="CABG isolated"&lt;BR /&gt;"Valve_i"      ="Valve isolated"     &lt;BR /&gt;"CABG_V"       ="CABG / Valve"      &lt;BR /&gt;"OHT"          ="Heart Transplant"&lt;BR /&gt;"Redo1"        ="Redo"   &lt;BR /&gt;"IABP_ever1"   ="Hx of IABP"      &lt;BR /&gt;"Hyperlip"     ="Hyperlipidemia" &lt;BR /&gt;"NIDDM1"       ="NIDDM" &lt;BR /&gt;"COPD"         ="COPD" &lt;BR /&gt;"CHF"          ="CHF" &lt;BR /&gt;"Afib"         ="Afib" &lt;BR /&gt;"CM"           ="Cardiomyopathy" &lt;BR /&gt;"CAD"          ="CAD" &lt;BR /&gt;"MI"           ="Hx of MI" &lt;BR /&gt;"AICD"         ="AICD" &lt;BR /&gt;"CRF"          ="Renal Failure" &lt;BR /&gt;"PVD"          ="PVD" &lt;BR /&gt;"ASA"          ="Aspirin" &lt;BR /&gt;"BB"           ="Beta Blockers" &lt;BR /&gt;"Steroids"     ="Steroids"&lt;BR /&gt;"Amio"         ="Amiodarone" &lt;BR /&gt;"LMWH"         ="LMWH" &lt;BR /&gt;"Digoxin"      ="Digoxin" &lt;BR /&gt;"AA1"          ="Alpha Antagonists" &lt;BR /&gt;"Statin1"      ="Statins"&lt;BR /&gt;"Nitrates1"     ="Nitrates " &lt;BR /&gt;"Diurectics1"  ="Diuretics" &lt;BR /&gt;"pre_Na"       ="preop Na" &lt;BR /&gt;"pre_BUN"      ="preop BUN" &lt;BR /&gt;"pre_Cr"       ="preop Cr" &lt;BR /&gt;"pre_Gluc"     ="preop Gluc" &lt;BR /&gt;"pre_Neutro"   ="preop Neutrophils" &lt;BR /&gt;"pre_Lymph"    ="preop Lymphocytes" &lt;BR /&gt;"pre_Hgb"      ="preop Hb" &lt;BR /&gt;"pRBC"         ="PRBC"&lt;BR /&gt;"FFP" 	        ="FFP"&lt;BR /&gt;"PLT"          ="Platelets"&lt;BR /&gt;"Cryo"         ="Cryoprecipitate"&lt;BR /&gt;"CPBmin"       ="Bypass time"&lt;BR /&gt;"AoXCmin"      ="Cross Clamp time"&lt;BR /&gt;"Ind_Temp1"    ="induction Temp(C)"&lt;BR /&gt;"Ind_HR1"      ="ind HR"&lt;BR /&gt;"Ind_SBP1"     ="ind SBP"&lt;BR /&gt;"Ind_MAP1"     ="ind MAP"   &lt;BR /&gt;"Ind_DBP1"     ="ind DBP"  &lt;BR /&gt;"Ind_PAS1"     ="ind PAS"  &lt;BR /&gt;"Ind_mPAP1"    ="ind mPAP"  &lt;BR /&gt;"Ind_PAD1"     ="ind PAD"   &lt;BR /&gt;"pulse_p"      ="ind pulse pressure"&lt;BR /&gt;"A"            ="."&lt;BR /&gt;"B"            ="."&lt;BR /&gt;"C"            =".";&lt;BR /&gt;run; &lt;BR /&gt;&lt;BR /&gt;data new;&lt;BR /&gt;set HEERDT.VP_Table2b2;&lt;BR /&gt;format Name $Namefmt.;&lt;BR /&gt;run;&lt;/PRE&gt;&lt;P&gt;I crated the missing values for A,B,C &amp;nbsp;so they would come out as empty lines in the subsequent tables.&lt;/P&gt;&lt;P&gt;I also tried this with a data step to see whether it made any difference. The "Induction BP's" did not get formatted consistently. Some were continuous words, and some had a space after "Ind".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This was the code before attempting the formatted approach:&lt;/P&gt;&lt;PRE&gt;proc template;&lt;BR /&gt;   define style mystyle;&lt;BR /&gt;   parent=styles.sasweb;&lt;BR /&gt;      class graphwalls / &lt;BR /&gt;            frameborder=off;&lt;BR /&gt;      class graphbackground / &lt;BR /&gt;            color=white;&lt;BR /&gt;   end;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;ods listing close;&lt;BR /&gt;ods html style=mystyle path='.' file='newgraph.html';&lt;BR /&gt;ods graphics / reset=all border=off width=800 height=900;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;/* sd OR's */&lt;BR /&gt;/* alternate colorbands */&lt;BR /&gt;&lt;BR /&gt;proc sgplot data =HEERDT.VP_Table2b2  nowall noborder ;&lt;BR /&gt;Title "OR (95% CI) for covariates across Vasoplegia Severity" ;&lt;BR /&gt;styleattrs datacontrastcolors=(CX18577A CX30CC6E  ) ;&lt;BR /&gt;scatter x=sdOR y=Name / xerrorupper=sdUCL xerrorlower=sdLCL noerrorcaps markerattrs=(symbol=circlefilled size =5 ) &lt;BR /&gt;group=Severity groupdisplay=cluster clusterwidth=0.6;&lt;BR /&gt;yaxis DISCRETEORDER= DATA reverse ;&lt;BR /&gt;xaxis display =(noticks  nolabel noline) VALUEATTRS=(Color=Black Family=Arial Size=8 Style=Normal Weight=Normal)type =log logbase =10;&lt;BR /&gt;yaxis display =(noticks nolabel noline) VALUEATTRS=(Color=Black Family=Arial Size=8 Style=Normal Weight=Normal)&lt;BR /&gt;valueshalign=left colorbands=odd colorbandsattrs=(transparency=0.7);&lt;BR /&gt;refline 1.0 / axis=x discretethickness=1 lineattrs=(color=cxd0e0f0);&lt;BR /&gt;&lt;BR /&gt;yaxistable pdp2_char sdORCI /class =Severity classdisplay =stack position=right location=outside &lt;BR /&gt;VALUEATTRS=(Color=Black Family=Arial Size=8  Weight=Normal ) VALUEHALIGN=CENTER VALUEJUSTIFY= CENTER CLASSORDER=DATA &lt;BR /&gt;COLORGROUP=Severity; &lt;BR /&gt; xaxis display=(nolabel) values=(0.4 1.0 1.5 2.0 2.5 5 );&lt;BR /&gt;run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I added this in my first attempt:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc sgplot data =HEERDT.VP_Table2b2  nowall noborder ;&lt;BR /&gt;Title "OR (95% CI) across Vasoplegia Severity, units=1 s.d." ;&lt;BR /&gt;styleattrs datacontrastcolors=(CX18577A CX30CC6E  ) ;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;format Name $Namefmt.&lt;/FONT&gt;;&lt;/PRE&gt;&lt;P&gt;.......(rest is the same as above).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Then I tried this&amp;nbsp;valuesformat approach:&lt;/FONT&gt;&lt;/P&gt;&lt;PRE&gt;proc sgplot data =Heerdt.Vasoplegia_space  nowall noborder ;&lt;BR /&gt;Title "OR (95% CI) for covariates across Vasoplegia Severity" ;&lt;BR /&gt;styleattrs datacontrastcolors=(CX18577A CX30CC6E  ) ;&lt;BR /&gt;scatter x=sdOR y=Name / xerrorupper=sdUCL xerrorlower=sdLCL noerrorcaps markerattrs=(symbol=circlefilled size =5 ) &lt;BR /&gt;group=Severity groupdisplay=cluster clusterwidth=0.6;&lt;BR /&gt;yaxis DISCRETEORDER= DATA reverse &lt;FONT color="#FF0000"&gt;valuesformat= $Namefmt.&lt;/FONT&gt;;&lt;/PRE&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;FONT color="#000000"&gt;(the rest being the same)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;I do get the spaces, but the formatting steps do not result in an&amp;nbsp;empty value on the y axis for "A,B, and C". Those letters do appear on the y axis, and&amp;nbsp;there is an empty space&amp;nbsp;across that level. So its frustrating that these letters are still there, and that the formatted&amp;nbsp;values on that Y axis do not appear as&amp;nbsp;requested.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;The&amp;nbsp;only&amp;nbsp;difference &amp;nbsp;from the examples that Sanjay gave us were that these non breaking spaces had only one measure at that categorical axis. My values&amp;nbsp;have two&amp;nbsp;because im comparing OR's&amp;nbsp;actoss two levels of severity of an outcome. Might just be that we cant&amp;nbsp;do this in this locked down&amp;nbsp;version&amp;nbsp;of SAS.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Sanjay&amp;nbsp;Kindly agreed to look at my data&amp;nbsp;and the code, so it will be&amp;nbsp;interesting to see his solution.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Much appreciated, Christos&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;FONT color="#ff0000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 21:41:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Non-breaking-spaces-and-formatting-for-gaps-on-an-axis/m-p/443527#M20604</guid>
      <dc:creator>ChristosK</dc:creator>
      <dc:date>2018-03-07T21:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: Non breaking spaces and formatting for gaps on an axis</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Non-breaking-spaces-and-formatting-for-gaps-on-an-axis/m-p/443532#M20605</link>
      <description>Hi:&lt;BR /&gt;  Sanjay and the other Graph folks typically answer questions posted in the SAS/Graph and ODS Graphics forum: &lt;A href="https://communities.sas.com/t5/SAS-GRAPH-and-ODS-Graphics/bd-p/sas_graph" target="_blank"&gt;https://communities.sas.com/t5/SAS-GRAPH-and-ODS-Graphics/bd-p/sas_graph&lt;/A&gt; ... so you might get more responses if you posted over there.&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
      <pubDate>Wed, 07 Mar 2018 22:18:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Non-breaking-spaces-and-formatting-for-gaps-on-an-axis/m-p/443532#M20605</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-03-07T22:18:28Z</dc:date>
    </item>
  </channel>
</rss>

