<?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: PROC SGPLOT REFLINE statement for multiple reference lines in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-SGPLOT-REFLINE-statement-for-multiple-reference-lines/m-p/741240#M231682</link>
    <description>&lt;P&gt;Since you apparently are trying to limit the line in the graph area you might consider adding the data points for the start and end points into the data set and add a VECTOR plot to connect the points. You'll likely want to use some options to display the resulting line segments as desired.&lt;/P&gt;</description>
    <pubDate>Thu, 13 May 2021 18:57:52 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2021-05-13T18:57:52Z</dc:date>
    <item>
      <title>PROC SGPLOT REFLINE statement for multiple reference lines</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SGPLOT-REFLINE-statement-for-multiple-reference-lines/m-p/741187#M231663</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to put reference lines into a figure that I would like to produce. The sample data and code below produces two reference lines through the complete x-axis (i.e. starting at y=0 for both reference lines for each block) whereas I want to have one reference line for the "Level1" block that starts at y=0 and &lt;U&gt;ends&lt;/U&gt; at the end of the block, and another refence line that &lt;U&gt;starts where the "Level 2" block starts&lt;/U&gt; (instead of starting at y=0). Is there any way to accomplish this within the PROC SGPLOT? I know that I can accomplish it if I was using PROC SGPANEL but that procedure creates other issues for me hence I want to stick to PROC SGPLOT.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data test;&lt;BR /&gt;input site $ city $ level $ obsmean cpred_final clower_final cupper_final;&lt;BR /&gt;datalines;&lt;BR /&gt;AB01 AB Level1 11.2716763 11.36606424 10.1001246 12.77349086&lt;BR /&gt;AB02 AB Level1 11.2716763 11.70074585 9.901032398 13.79140514&lt;BR /&gt;AB03 AB Level1 11.2716763 10.13968107 8.807718178 11.64910875&lt;BR /&gt;BC01 BC Level1 11.2716763 13.98765486 11.41248954 17.03470972&lt;BR /&gt;BC02 BC Level1 11.2716763 11.16346301 9.725727975 12.78818917&lt;BR /&gt;BC03 BC Level1 11.2716763 10.86537285 8.718797682 13.47623528&lt;BR /&gt;BC04 BC Level1 11.2716763 9.144506109 8.013572333 10.41066547&lt;BR /&gt;BC05 BC Level1 11.2716763 11.90861324 10.16280247 13.90909326&lt;BR /&gt;AB04 AB Level2 9.648187633 5.8868717 3.90289612 8.808718252&lt;BR /&gt;AB05 AB Level2 9.648187633 6.094263969 4.292064865 8.604182751&lt;BR /&gt;AB06 AB Level2 9.648187633 6.991179045 5.120179622 9.493934609&lt;BR /&gt;AB07 AB Level2 9.648187633 7.147464451 5.034721041 10.07672303&lt;BR /&gt;AB08 AB Level2 9.648187633 6.522514246 4.807970317 8.787388707&lt;BR /&gt;BC06 BC Level2 9.648187633 7.830914636 6.034632868 10.11549577&lt;BR /&gt;BC07 BC Level2 9.648187633 8.007776457 6.261879722 10.15813104&lt;BR /&gt;BC08 BC Level2 9.648187633 9.2036592 6.975207878 12.06377729&lt;BR /&gt;BC09 BC Level2 9.648187633 8.544482107 6.216079509 11.66857708&lt;BR /&gt;BC10 BC Level2 9.648187633 8.565949206 6.322877926 11.53859169&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc sgplot data=test NOAUTOLEGEND;&lt;BR /&gt;block x=site block=level/filltype=alternate&lt;BR /&gt;fillattrs=GraphAltBlock&lt;BR /&gt;altfillattrs=GraphBlock&lt;BR /&gt;transparency=0.7;&lt;BR /&gt;scatter x=site y=cpred_final/yerrorupper=cupper_final&lt;BR /&gt;yerrorlower=clower_final&lt;BR /&gt;MARKERATTRS=(symbol=squarefilled color=black size=5)&lt;BR /&gt;TRANSPARENCY=0.3&lt;BR /&gt;group=city;&lt;BR /&gt;xaxis grid label="Site" valuesrotate=vertical;&lt;BR /&gt;yaxis values=(0 to 20 by 5) grid label="Rate (%)" discreteorder=data;&lt;BR /&gt;refline obsmean;&lt;BR /&gt;format cpred_final 4.1;&lt;BR /&gt;title ' ';&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 17:45:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SGPLOT-REFLINE-statement-for-multiple-reference-lines/m-p/741187#M231663</guid>
      <dc:creator>Recep</dc:creator>
      <dc:date>2021-05-13T17:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPLOT REFLINE statement for multiple reference lines</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SGPLOT-REFLINE-statement-for-multiple-reference-lines/m-p/741240#M231682</link>
      <description>&lt;P&gt;Since you apparently are trying to limit the line in the graph area you might consider adding the data points for the start and end points into the data set and add a VECTOR plot to connect the points. You'll likely want to use some options to display the resulting line segments as desired.&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 18:57:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SGPLOT-REFLINE-statement-for-multiple-reference-lines/m-p/741240#M231682</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-05-13T18:57:52Z</dc:date>
    </item>
  </channel>
</rss>

