<?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 Gplot - setting colors and reference lines in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Gplot-setting-colors-and-reference-lines/m-p/941592#M369408</link>
    <description>&lt;P&gt;First question is why Gplot?&lt;/P&gt;
&lt;P&gt;Might help to show your existing code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;VREF=value or value list will draw reference lines perpendicular to the vertical axis (i.e. at Y axis values)&lt;/P&gt;
&lt;P&gt;There are multiple other options to work with the VREF: CVREF to set colors, LVREF to set line type. WVREF to set line widths, and then a similar set for AUTOVREF if you want a reference line at each axis tick mark.&lt;/P&gt;
&lt;P&gt;HREF and similar for the Horizontal axis.&lt;/P&gt;
&lt;P&gt;Where a value list is used it looks like VREF= 300 1000 1500 to set 3 reference lines at Yaxis values of 300, 1000 and 1500.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It has been a long time since I used GPLOT much (think last century). If I wanted to change the color of a line plot based on a value then I would set a variable to different values for different ranges and match those values to SYMBOL statements. The kicker is going to be extra coding to avoid gaps if doing a line chart and Bubble charts would be a nightmare if you want to color only part of a bubble.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Aug 2024 00:49:38 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2024-08-29T00:49:38Z</dc:date>
    <item>
      <title>Proc Gplot - setting colors and reference lines</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Gplot-setting-colors-and-reference-lines/m-p/941585#M369406</link>
      <description>&lt;P&gt;I'm more familiar with SGPLOT than GPLOT so&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. How do I set a reference line on the y-axis?&lt;/P&gt;
&lt;P&gt;2. How do I change the color for values at or above a certain level?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2024 23:09:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Gplot-setting-colors-and-reference-lines/m-p/941585#M369406</guid>
      <dc:creator>_Hopper</dc:creator>
      <dc:date>2024-08-28T23:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Gplot - setting colors and reference lines</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Gplot-setting-colors-and-reference-lines/m-p/941591#M369407</link>
      <description>&lt;P&gt;Don't use GPLOT. SGPLOT is so much better.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 00:45:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Gplot-setting-colors-and-reference-lines/m-p/941591#M369407</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2024-08-29T00:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Gplot - setting colors and reference lines</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Gplot-setting-colors-and-reference-lines/m-p/941592#M369408</link>
      <description>&lt;P&gt;First question is why Gplot?&lt;/P&gt;
&lt;P&gt;Might help to show your existing code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;VREF=value or value list will draw reference lines perpendicular to the vertical axis (i.e. at Y axis values)&lt;/P&gt;
&lt;P&gt;There are multiple other options to work with the VREF: CVREF to set colors, LVREF to set line type. WVREF to set line widths, and then a similar set for AUTOVREF if you want a reference line at each axis tick mark.&lt;/P&gt;
&lt;P&gt;HREF and similar for the Horizontal axis.&lt;/P&gt;
&lt;P&gt;Where a value list is used it looks like VREF= 300 1000 1500 to set 3 reference lines at Yaxis values of 300, 1000 and 1500.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It has been a long time since I used GPLOT much (think last century). If I wanted to change the color of a line plot based on a value then I would set a variable to different values for different ranges and match those values to SYMBOL statements. The kicker is going to be extra coding to avoid gaps if doing a line chart and Bubble charts would be a nightmare if you want to color only part of a bubble.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 00:49:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Gplot-setting-colors-and-reference-lines/m-p/941592#M369408</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-08-29T00:49:38Z</dc:date>
    </item>
  </channel>
</rss>

