<?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: Histogram and Scatterplot Sharing an Axis in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Histogram-and-Scatterplot-Sharing-an-Axis/m-p/712517#M20949</link>
    <description>Yes, it can definitely be done. GTL is likely what you'd need though. I would probably create each graph type separate first and then combine them. &lt;BR /&gt;&lt;BR /&gt;If you use SGPLOT to create each graph individually and then use the TMPLOUT option you'll get the GTL code. &lt;BR /&gt;Then you have to figure out how to set up the layout of them. &lt;BR /&gt;&lt;BR /&gt;I highly recommend searching on lexjansen.com for GTL papers for examples. &lt;BR /&gt;&lt;BR /&gt;FYI - If you post images we'd have to type out your data to work with it since we cannot copy/paste.</description>
    <pubDate>Tue, 19 Jan 2021 21:23:54 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2021-01-19T21:23:54Z</dc:date>
    <item>
      <title>Histogram and Scatterplot Sharing an Axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Histogram-and-Scatterplot-Sharing-an-Axis/m-p/712512#M20948</link>
      <description>&lt;P&gt;I would like to create a graphic in which a histogram that shows the frequencies for one variable (Ability in the data example, Have) shares an axis with a scatterplot of two other variables (X = Item and Y = Difficulty in the data example). That is, the values of Ability and Difficulty would all reference a common axis as shown in the Want figure below. Ideally, the scatterplot points would be labeled with another variable (Label in the data example). Any idea whether and, if so, how this can be done in SAS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Data.png" style="width: 215px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/53638iFFCC11FEB15EB6F9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Data.png" alt="Data.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Want:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="HistogramScatterplot.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/53639i4EDDE00EF2C37484/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HistogramScatterplot.png" alt="HistogramScatterplot.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 21:10:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Histogram-and-Scatterplot-Sharing-an-Axis/m-p/712512#M20948</guid>
      <dc:creator>edwolfe</dc:creator>
      <dc:date>2021-01-19T21:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Histogram and Scatterplot Sharing an Axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Histogram-and-Scatterplot-Sharing-an-Axis/m-p/712517#M20949</link>
      <description>Yes, it can definitely be done. GTL is likely what you'd need though. I would probably create each graph type separate first and then combine them. &lt;BR /&gt;&lt;BR /&gt;If you use SGPLOT to create each graph individually and then use the TMPLOUT option you'll get the GTL code. &lt;BR /&gt;Then you have to figure out how to set up the layout of them. &lt;BR /&gt;&lt;BR /&gt;I highly recommend searching on lexjansen.com for GTL papers for examples. &lt;BR /&gt;&lt;BR /&gt;FYI - If you post images we'd have to type out your data to work with it since we cannot copy/paste.</description>
      <pubDate>Tue, 19 Jan 2021 21:23:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Histogram-and-Scatterplot-Sharing-an-Axis/m-p/712517#M20949</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-01-19T21:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Histogram and Scatterplot Sharing an Axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Histogram-and-Scatterplot-Sharing-an-Axis/m-p/712525#M20950</link>
      <description>&lt;P&gt;You might look at the code here: &lt;A href="https://support.sas.com/kb/35/172.html" target="_blank"&gt;https://support.sas.com/kb/35/172.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;This shows a scatter plot with histograms of both the x and y variable. So removing the x variable bits for the histogram may do what you are looking for.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warning: it does not show the count for the histogram bar lengths.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 21:42:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Histogram-and-Scatterplot-Sharing-an-Axis/m-p/712525#M20950</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-01-19T21:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Histogram and Scatterplot Sharing an Axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Histogram-and-Scatterplot-Sharing-an-Axis/m-p/712658#M20955</link>
      <description>&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2017/06/26/advanced-ods-graphics-range-attribute-maps/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/2017/06/26/advanced-ods-graphics-range-attribute-maps/&lt;/A&gt;</description>
      <pubDate>Wed, 20 Jan 2021 12:54:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Histogram-and-Scatterplot-Sharing-an-Axis/m-p/712658#M20955</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-01-20T12:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: Histogram and Scatterplot Sharing an Axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Histogram-and-Scatterplot-Sharing-an-Axis/m-p/712672#M20956</link>
      <description>&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2014/12/27/scatter-with-stacked-histograms/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/2014/12/27/scatter-with-stacked-histograms/&lt;/A&gt;</description>
      <pubDate>Wed, 20 Jan 2021 13:21:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Histogram-and-Scatterplot-Sharing-an-Axis/m-p/712672#M20956</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-01-20T13:21:47Z</dc:date>
    </item>
  </channel>
</rss>

