<?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: Plotting vertical lines and representing percentage values in graph in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Plotting-vertical-lines-and-representing-percentage-values-in/m-p/794364#M22555</link>
    <description>&lt;P&gt;If I were creating this using SGPLOT, here is how I would do it (this following code is just a guideline):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=wahtever;
refine 25 / lineattrs=(pattern=dot color=red);
refine 13 / lineattrs=(pattern=dot color=black);
highlow x=xvar high=highvar low=lowvar / lineattrs=(pattern=dot color=lightgray);
scatter x=xvar y=highvar / markerattrs=(symbol=circlefilled color=red);
scatter x=xvar y=lowvar / markerattrs=(symbol=square color=black);
text x=xvar y=highvar text=highpct / textattrs=(color=red) position=top pad=(bottom=3px);
text x=xvar y=lowvar text=lowpct / textattrs=(color=black) position=top pad=(bottom=3px);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Feb 2022 21:49:09 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2022-02-03T21:49:09Z</dc:date>
    <item>
      <title>Plotting vertical lines and representing percentage values in graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Plotting-vertical-lines-and-representing-percentage-values-in/m-p/794335#M22553</link>
      <description>&lt;P&gt;Hi All, &lt;BR /&gt;I have got one reference&amp;nbsp; graph to create similar output (attached is the graph) , but not sure what type of graphs is it.(assuming it as scatter plot, not sure) . As per the attached graph values on X- axis represents each state code(numeric value) and the y-axis values are percentage of cars present in each state (two different companies X and Y). May i know how the 0% values are represented on above x-axis and vertical lines from 0 to the respective percentages or sometimes the corresponding percentage is in between. Colour represents companies X and Y.&lt;BR /&gt;Any sample code/suggestions how to generate this and what this graph is called. Thanks in advance for suggestions&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 19:27:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Plotting-vertical-lines-and-representing-percentage-values-in/m-p/794335#M22553</guid>
      <dc:creator>keen_sas</dc:creator>
      <dc:date>2022-02-03T19:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting vertical lines and representing percentage values in graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Plotting-vertical-lines-and-representing-percentage-values-in/m-p/794340#M22554</link>
      <description>No idea what it's called but you could create it with a Scatter statement and error bars that have dotted lines. &lt;BR /&gt;You could also do two scatter statements and a drop line most likely. &lt;BR /&gt;&lt;BR /&gt;SGPLOT would be where you would start and I'd assume you're starting with aggregate data already.</description>
      <pubDate>Thu, 03 Feb 2022 19:57:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Plotting-vertical-lines-and-representing-percentage-values-in/m-p/794340#M22554</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-02-03T19:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting vertical lines and representing percentage values in graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Plotting-vertical-lines-and-representing-percentage-values-in/m-p/794364#M22555</link>
      <description>&lt;P&gt;If I were creating this using SGPLOT, here is how I would do it (this following code is just a guideline):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=wahtever;
refine 25 / lineattrs=(pattern=dot color=red);
refine 13 / lineattrs=(pattern=dot color=black);
highlow x=xvar high=highvar low=lowvar / lineattrs=(pattern=dot color=lightgray);
scatter x=xvar y=highvar / markerattrs=(symbol=circlefilled color=red);
scatter x=xvar y=lowvar / markerattrs=(symbol=square color=black);
text x=xvar y=highvar text=highpct / textattrs=(color=red) position=top pad=(bottom=3px);
text x=xvar y=lowvar text=lowpct / textattrs=(color=black) position=top pad=(bottom=3px);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 21:49:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Plotting-vertical-lines-and-representing-percentage-values-in/m-p/794364#M22555</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2022-02-03T21:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting vertical lines and representing percentage values in graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Plotting-vertical-lines-and-representing-percentage-values-in/m-p/794365#M22556</link>
      <description>&lt;P&gt;You will probably need this statement inside SGPLOT as well (given your data):&lt;/P&gt;
&lt;P&gt;xaxis type=discrete;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 21:55:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Plotting-vertical-lines-and-representing-percentage-values-in/m-p/794365#M22556</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2022-02-03T21:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting vertical lines and representing percentage values in graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Plotting-vertical-lines-and-representing-percentage-values-in/m-p/794449#M22557</link>
      <description>&lt;P&gt;I would call this graph a (vertical) high-low plot. For an overview, &lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2014/05/04/the-highlow-plot/" target="_self"&gt;see this blog post.&lt;/A&gt;&amp;nbsp;For more details about the vertical high-low plot, see &lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2017/09/24/getting-started-with-sgplot-part-7-vertical-highlow-plot/" target="_self"&gt;"Getting started with SGPLOT: Vertical HighLow Plot."&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Feb 2022 11:20:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Plotting-vertical-lines-and-representing-percentage-values-in/m-p/794449#M22557</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-02-04T11:20:51Z</dc:date>
    </item>
  </channel>
</rss>

