<?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 Plotting two variables on one graph in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Plotting-two-variables-on-one-graph/m-p/45812#M1531</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which release of SAS are you using?&amp;nbsp; With SAS 9.2, you can easily combine multiple bar charts in one graph using GTL, with or without the line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Nov 2011 15:36:34 GMT</pubDate>
    <dc:creator>Jay54</dc:creator>
    <dc:date>2011-11-14T15:36:34Z</dc:date>
    <item>
      <title>Plotting two variables on one graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Plotting-two-variables-on-one-graph/m-p/45806#M1525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm looking to plot two separate variables on the same bar graph. I am currently using proc gbarline to plot one of the variables, but I'd like another to be displayed next to it as another bar (not a line - essentially another "sumvar" statement).&amp;nbsp; Is this possible, or is there another way/procedure that will perform this?&amp;nbsp; Thanks!&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2011 22:16:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Plotting-two-variables-on-one-graph/m-p/45806#M1525</guid>
      <dc:creator>GiorGirl</dc:creator>
      <dc:date>2011-11-10T22:16:48Z</dc:date>
    </item>
    <item>
      <title>Plotting two variables on one graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Plotting-two-variables-on-one-graph/m-p/45807#M1526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FYI - The data is complicated enough that I am also plotting by subgroups and it cannot be transposed to create just one variable to graph.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2011 22:21:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Plotting-two-variables-on-one-graph/m-p/45807#M1526</guid>
      <dc:creator>GiorGirl</dc:creator>
      <dc:date>2011-11-10T22:21:25Z</dc:date>
    </item>
    <item>
      <title>Plotting two variables on one graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Plotting-two-variables-on-one-graph/m-p/45808#M1527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have SAS 9.2 or higher, you can do this using GTL.&amp;nbsp; Here is an example from a previous post.&amp;nbsp; Please post your graph and data so I can send you something closer to what you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="BarLineLegendGTL.png" class="jive-image-thumbnail jive-image" onclick="" src="https://communities.sas.com/legacyfs/online/1255_BarLineLegendGTL.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2011 00:15:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Plotting-two-variables-on-one-graph/m-p/45808#M1527</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2011-11-11T00:15:53Z</dc:date>
    </item>
    <item>
      <title>Plotting two variables on one graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Plotting-two-variables-on-one-graph/m-p/45809#M1528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gbarline supports subgrouped bars (stacked segments), but not grouped bars (side-by-side).&lt;/P&gt;&lt;P&gt;One possible work-around is to use Gchart to create the bar chart, and then use annotate &lt;/P&gt;&lt;P&gt;to draw the line.&amp;nbsp; Here's an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://robslink.com/SAS/democd29/barline.htm"&gt;http://robslink.com/SAS/democd29/barline.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://robslink.com/SAS/democd29/barline_info.htm"&gt;http://robslink.com/SAS/democd29/barline_info.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2011 13:05:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Plotting-two-variables-on-one-graph/m-p/45809#M1528</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2011-11-11T13:05:48Z</dc:date>
    </item>
    <item>
      <title>Plotting two variables on one graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Plotting-two-variables-on-one-graph/m-p/45810#M1529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the information, but it's not quite what I'm looking for.&amp;nbsp; I'm not actually wanting to put a line on the bar graph, I'm wanting to just make a bar graph that looks like the one you just posted (without the line) - but with two different variables.&amp;nbsp; I do not have a "type" that both the variables I want to plot are under; they are each their own and must be plotted separately.&amp;nbsp; Because I also need to plot by subgroups, transposing the data to put them under one heading is not possible.&amp;nbsp; Can I simply combine two different bar graphs?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 14:32:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Plotting-two-variables-on-one-graph/m-p/45810#M1529</guid>
      <dc:creator>GiorGirl</dc:creator>
      <dc:date>2011-11-14T14:32:16Z</dc:date>
    </item>
    <item>
      <title>Plotting two variables on one graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Plotting-two-variables-on-one-graph/m-p/45811#M1530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm ... well, if you don't want a line, then you definitely don't want to be using Proc GBarline &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can combine 2 bar charts with Proc GReplay ... but I don't think the results would be what you're wanting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you possibly post up some example data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And, better yet, maybe "draw" a picture of the graph you're wanting (scan in a hand-drawn graph, or use a drawing package, or something) to show us what you're wanting?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 15:26:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Plotting-two-variables-on-one-graph/m-p/45811#M1530</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2011-11-14T15:26:07Z</dc:date>
    </item>
    <item>
      <title>Plotting two variables on one graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Plotting-two-variables-on-one-graph/m-p/45812#M1531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which release of SAS are you using?&amp;nbsp; With SAS 9.2, you can easily combine multiple bar charts in one graph using GTL, with or without the line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 15:36:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Plotting-two-variables-on-one-graph/m-p/45812#M1531</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2011-11-14T15:36:34Z</dc:date>
    </item>
  </channel>
</rss>

