<?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 Displaying actual distribution on graph in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Displaying-actual-distribution-on-graph/m-p/75651#M2807</link>
    <description>Is there an option available to plot (in gplot or any other proc) actual distributions of variables at both the x- and y-axis within the graph which displays y*x plot?</description>
    <pubDate>Mon, 19 Apr 2010 13:35:14 GMT</pubDate>
    <dc:creator>VD</dc:creator>
    <dc:date>2010-04-19T13:35:14Z</dc:date>
    <item>
      <title>Displaying actual distribution on graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Displaying-actual-distribution-on-graph/m-p/75651#M2807</link>
      <description>Is there an option available to plot (in gplot or any other proc) actual distributions of variables at both the x- and y-axis within the graph which displays y*x plot?</description>
      <pubDate>Mon, 19 Apr 2010 13:35:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Displaying-actual-distribution-on-graph/m-p/75651#M2807</guid>
      <dc:creator>VD</dc:creator>
      <dc:date>2010-04-19T13:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying actual distribution on graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Displaying-actual-distribution-on-graph/m-p/75652#M2808</link>
      <description>There might be something easier &amp;amp; more automated in the newer ODS graphics, but here are 2 techniques you could use with the traditional SAS/Graph gplot and annotate:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://robslink.com/SAS/democd8/margin.htm" target="_blank"&gt;http://robslink.com/SAS/democd8/margin.htm&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://robslink.com/SAS/democd8/margin_info.htm" target="_blank"&gt;http://robslink.com/SAS/democd8/margin_info.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://robslink.com/SAS/democd29/mpgsuv.htm" target="_blank"&gt;http://robslink.com/SAS/democd29/mpgsuv.htm&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://robslink.com/SAS/democd29/mpg_info.htm" target="_blank"&gt;http://robslink.com/SAS/democd29/mpg_info.htm&lt;/A&gt;</description>
      <pubDate>Mon, 19 Apr 2010 14:42:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Displaying-actual-distribution-on-graph/m-p/75652#M2808</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2010-04-19T14:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying actual distribution on graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Displaying-actual-distribution-on-graph/m-p/75653#M2809</link>
      <description>If you have SAS 9.2, you can run the code below to get what you want. YOu only need to submit the template once. After that, you can run PROC SGRENDER with different data sets and X/Y variables. Let me know if you have any questions.&lt;BR /&gt;
&lt;BR /&gt;
Thanks!&lt;BR /&gt;
Dan&lt;BR /&gt;
&lt;BR /&gt;
proc template;&lt;BR /&gt;
define statgraph histplot;&lt;BR /&gt;
dynamic XVAR YVAR;&lt;BR /&gt;
begingraph;&lt;BR /&gt;
layout lattice / columndatarange=union columngutter=10 columnweights=(0.75 0.25 ) columns=2 &lt;BR /&gt;
                 rowdatarange=union rowgutter=10 rowweights=(0.25 0.75 ) rows=2;&lt;BR /&gt;
         layout overlay;&lt;BR /&gt;
            histogram  XVAR / binaxis=false name='histogram';&lt;BR /&gt;
         endlayout;&lt;BR /&gt;
         layout overlay;&lt;BR /&gt;
            entry halign=center ' ' / valign=center;&lt;BR /&gt;
         endlayout;&lt;BR /&gt;
         layout overlay;&lt;BR /&gt;
            scatterplot x=XVAR y=YVAR / name='scatter';&lt;BR /&gt;
         endlayout;&lt;BR /&gt;
         layout overlay;&lt;BR /&gt;
            histogram YVAR / binaxis=false name='histogram_h' orient=horizontal;&lt;BR /&gt;
         endlayout;&lt;BR /&gt;
         rowaxes;&lt;BR /&gt;
            rowaxis;&lt;BR /&gt;
            rowaxis;&lt;BR /&gt;
         endrowaxes;&lt;BR /&gt;
         columnaxes;&lt;BR /&gt;
            columnaxis;&lt;BR /&gt;
            columnaxis;&lt;BR /&gt;
         endcolumnaxes;&lt;BR /&gt;
endlayout;&lt;BR /&gt;
endgraph;&lt;BR /&gt;
end;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc sgrender data=SASHELP.CLASS template=histplot;&lt;BR /&gt;
dynamic XVAR="weight" YVAR="height";&lt;BR /&gt;
run;</description>
      <pubDate>Mon, 19 Apr 2010 17:02:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Displaying-actual-distribution-on-graph/m-p/75653#M2809</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2010-04-19T17:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying actual distribution on graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Displaying-actual-distribution-on-graph/m-p/75654#M2810</link>
      <description>Excellent. Many thanks, Robert.</description>
      <pubDate>Tue, 20 Apr 2010 09:20:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Displaying-actual-distribution-on-graph/m-p/75654#M2810</guid>
      <dc:creator>VD</dc:creator>
      <dc:date>2010-04-20T09:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying actual distribution on graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Displaying-actual-distribution-on-graph/m-p/75655#M2811</link>
      <description>Many thanks, Dan. A very convenient piece of code. Unfortunately, still on 9.1! Will keep this for future.&lt;BR /&gt;
&lt;BR /&gt;
Vikas</description>
      <pubDate>Tue, 20 Apr 2010 09:23:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Displaying-actual-distribution-on-graph/m-p/75655#M2811</guid>
      <dc:creator>VD</dc:creator>
      <dc:date>2010-04-20T09:23:34Z</dc:date>
    </item>
  </channel>
</rss>

