<?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: SAS graph reduce size of x-axis in proc sgplot in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/SAS-graph-reduce-size-of-x-axis-in-proc-sgplot/m-p/926723#M24582</link>
    <description>DanH got the right idea here.&lt;BR /&gt;Another useful option is "clipcap ":&lt;BR /&gt;&lt;BR /&gt;  highlow y=obsid low=low high=high /lowcap=serif highcap=serif clipcap ;&lt;BR /&gt;&lt;BR /&gt;and specify CUTOFF/MAX value in XAXIS :&lt;BR /&gt; xaxis display=(nolabel) values=(0 to &amp;amp;cutoff. by 1) offsetmin=0 offsetmax=0;&lt;BR /&gt;</description>
    <pubDate>Thu, 02 May 2024 03:49:45 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2024-05-02T03:49:45Z</dc:date>
    <item>
      <title>SAS graph reduce size of x-axis in proc sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-graph-reduce-size-of-x-axis-in-proc-sgplot/m-p/926669#M24579</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to reduce the the width of line or size of axis here ?&lt;/P&gt;&lt;P&gt;I have used below steps and the output looks like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sas_user_IND_0-1714589756687.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/96104i6D00BD85CA3E641E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sas_user_IND_0-1714589756687.png" alt="sas_user_IND_0-1714589756687.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sgplot data=all_2 nowall noborder nocycleattrs noautolegend dattrmap=attrmap sganno=anno;&lt;/P&gt;&lt;P&gt;refline ref / lineattrs=(thickness=13 color=cxf0f0f7);&lt;BR /&gt;highlow y=obsid low=lowercl high=uppercl/type=line barwidth=1 LINEATTRS=(thickness=2);&lt;BR /&gt;scatter y=obsid x=value / markerattrs=(symbol=squarefilled) ;&lt;BR /&gt;scatter y=obsid x=value / markerattrs=(size=0) x2axis;&lt;BR /&gt;refline 1 / axis=x;&lt;BR /&gt;text x=xl y=obsid text=text / position=bottom contributeoffsets=none strip ;&lt;BR /&gt;yaxistable char / location=inside position=left textgroup=id NOLABEL&amp;nbsp;&lt;BR /&gt;textgroupid=text indentweight=indentWt;&lt;BR /&gt;yaxistable per1 per2 / location=inside position=left labelattrs=(size=7) valueattrs=(size=4);&lt;/P&gt;&lt;P&gt;yaxistable col0002 / location=inside position=right pad=(right=15px)&lt;BR /&gt;labelattrs=(size=7) valueattrs=(size=4);&lt;BR /&gt;yaxis reverse display=none colorbands=odd colorbandsattrs=(transparency=1) offsetmin=0.0 ;&lt;BR /&gt;xaxis display=(nolabel) values=(0.0 0.5 1.0 1.5 2.0 2.5);&lt;BR /&gt;x2axis label='Hazard Ratio' display=(noline noticks novalues) labelattrs=(size=8);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some points to be assumed here :&lt;/P&gt;&lt;P&gt;(1) Left side data is dummy the text in 1st column are bit long so I have already used the space at its best.&lt;/P&gt;&lt;P&gt;(2) I cannot keep the values outside the graph it has to be on left and right side.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please suggest how could I reduce th size of the axis or the "lines" in highlow statement so that it will not overwrite the values around it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 19:00:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-graph-reduce-size-of-x-axis-in-proc-sgplot/m-p/926669#M24579</guid>
      <dc:creator>sas_user_IND</dc:creator>
      <dc:date>2024-05-01T19:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAS graph reduce size of x-axis in proc sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-graph-reduce-size-of-x-axis-in-proc-sgplot/m-p/926687#M24580</link>
      <description>&lt;P&gt;In the LINEATTRS of the HIGHLOW, you have the thickness set to 2. You can just remove the LINEATTRS, and the default should be 1.&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 20:06:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-graph-reduce-size-of-x-axis-in-proc-sgplot/m-p/926687#M24580</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2024-05-01T20:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: SAS graph reduce size of x-axis in proc sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-graph-reduce-size-of-x-axis-in-proc-sgplot/m-p/926693#M24581</link>
      <description>&lt;P&gt;I have another recommendation that should keep the HIGHLOW from running into your AXISTABLE and still convey to the viewer that the data goes beyond 2.5. Create a temporary dataset that clamps the highly upper value to 2.5 and puts an arrow to indicate that the highly would continue beyond 2.5. The data step would looks something like the following:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data temp_all_2;
set all_2;
length cont $ 11;
if upperci &amp;gt; 2.5 then do;
    upperci=2.5;
    cont="BARBEDARROW";
end;
else
     cont="NONE";
run;
&amp;nbsp; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then, use this dataset on the proc and set HIGHCAP=cont on the HIGHLOW. There are also other arrow types from which to choose.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;hope this helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 21:07:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-graph-reduce-size-of-x-axis-in-proc-sgplot/m-p/926693#M24581</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2024-05-01T21:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: SAS graph reduce size of x-axis in proc sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-graph-reduce-size-of-x-axis-in-proc-sgplot/m-p/926723#M24582</link>
      <description>DanH got the right idea here.&lt;BR /&gt;Another useful option is "clipcap ":&lt;BR /&gt;&lt;BR /&gt;  highlow y=obsid low=low high=high /lowcap=serif highcap=serif clipcap ;&lt;BR /&gt;&lt;BR /&gt;and specify CUTOFF/MAX value in XAXIS :&lt;BR /&gt; xaxis display=(nolabel) values=(0 to &amp;amp;cutoff. by 1) offsetmin=0 offsetmax=0;&lt;BR /&gt;</description>
      <pubDate>Thu, 02 May 2024 03:49:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-graph-reduce-size-of-x-axis-in-proc-sgplot/m-p/926723#M24582</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-05-02T03:49:45Z</dc:date>
    </item>
  </channel>
</rss>

