<?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: How do I put in the green vertical lines connecting the diamond and triangle symbols? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-put-in-the-green-vertical-lines-connecting-the-diamond/m-p/697763#M213302</link>
    <description>&lt;P&gt;Add a HIGHLOW plot&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Something like:&lt;/P&gt;
&lt;PRE&gt;Title '2019 Gasoline Prices'; 
Title2 'New York Vs. Nebraska';
Proc sgplot data=Gas noautolegend; 
band x=month upper= NY_Price lower=0/fillattrs=(color=salmon)
                                     curvelabelupper='NY'; 
series x=month y=NY_Price/ markers markerattrs=(symbol=diamondfilled color=blue)
lineattrs=(color=salmon);                                     
band x=month upper= NE_Price lower=0/fillattrs=(color=cream)
                                     curvelabelupper='NE'; 
series x=month y=NE_Price/ markers markerattrs=(symbol=trianglefilled color=red)
lineattrs=(color=cream);

highlow x=month high=ny_price low=ne_price /
         lineattrs=(color=green);

Yaxis Label="Price of a Gallon of Gas" min=2;
xaxis type=discrete;
format Month monfmt.;

run; 
Title; &lt;/PRE&gt;</description>
    <pubDate>Mon, 09 Nov 2020 23:00:58 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2020-11-09T23:00:58Z</dc:date>
    <item>
      <title>How do I put in the green vertical lines connecting the diamond and triangle symbols?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-put-in-the-green-vertical-lines-connecting-the-diamond/m-p/697749#M213297</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Screen Shot 2020-11-09 at 3.54.42 PM.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/51540iE8A714D101DB00DE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2020-11-09 at 3.54.42 PM.png" alt="Screen Shot 2020-11-09 at 3.54.42 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data Gas;
Infile datalines;
Input Month NE_Price NY_Price @@;
datalines;
 1   2.07   2.44  2   2.20   2.40  3   2.48   2.56  4   2.72   2.77
 5   2.75   2.89  6   2.62   2.79  7   2.61   2.80  8   2.52   2.75
 9   2.48   2.66 10   2.48   2.6  11   2.47   2.60 12   2.42   2.59
;
run;

Proc format;
value monfmt 1='Jan' 2='Feb' 3='Mar' 4='Apr'
             5='May' 6='Jun' 7='Jul' 8='Aug'
             9='Sep' 10='Oct' 11='Nov' 12='Dec';
Run;
proc print data=Gas;
	format Month monfmt.;
	run; 
Title '2019 Gasoline Prices'; 
Title2 'New York Vs. Nebraska';
Proc sgplot data=Gas noautolegend; 
band x=month upper= NY_Price lower=0/fillattrs=(color=salmon)
                                     curvelabelupper='NY'; 
series x=month y=NY_Price/ markers markerattrs=(symbol=diamondfilled color=blue)
lineattrs=(color=salmon);                                     
band x=month upper= NE_Price lower=0/fillattrs=(color=cream)
                                     curvelabelupper='NE'; 
series x=month y=NE_Price/ markers markerattrs=(symbol=trianglefilled color=red)
lineattrs=(color=cream);

Yaxis Label="Price of a Gallon of Gas" min=2;
xaxis type=discrete;
format Month monfmt.;


run; 
Title; 
Title2; &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 Nov 2020 22:01:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-put-in-the-green-vertical-lines-connecting-the-diamond/m-p/697749#M213297</guid>
      <dc:creator>sb1062204</dc:creator>
      <dc:date>2020-11-09T22:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do I put in the green vertical lines connecting the diamond and triangle symbols?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-put-in-the-green-vertical-lines-connecting-the-diamond/m-p/697763#M213302</link>
      <description>&lt;P&gt;Add a HIGHLOW plot&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Something like:&lt;/P&gt;
&lt;PRE&gt;Title '2019 Gasoline Prices'; 
Title2 'New York Vs. Nebraska';
Proc sgplot data=Gas noautolegend; 
band x=month upper= NY_Price lower=0/fillattrs=(color=salmon)
                                     curvelabelupper='NY'; 
series x=month y=NY_Price/ markers markerattrs=(symbol=diamondfilled color=blue)
lineattrs=(color=salmon);                                     
band x=month upper= NE_Price lower=0/fillattrs=(color=cream)
                                     curvelabelupper='NE'; 
series x=month y=NE_Price/ markers markerattrs=(symbol=trianglefilled color=red)
lineattrs=(color=cream);

highlow x=month high=ny_price low=ne_price /
         lineattrs=(color=green);

Yaxis Label="Price of a Gallon of Gas" min=2;
xaxis type=discrete;
format Month monfmt.;

run; 
Title; &lt;/PRE&gt;</description>
      <pubDate>Mon, 09 Nov 2020 23:00:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-put-in-the-green-vertical-lines-connecting-the-diamond/m-p/697763#M213302</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-11-09T23:00:58Z</dc:date>
    </item>
  </channel>
</rss>

