<?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 to plot the size difference? in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/how-to-plot-the-size-difference/m-p/583822#M7889</link>
    <description>&lt;P&gt;Of course.&lt;/P&gt;&lt;P&gt;My data is attached and that is my latest result . Thank you for your reply!&lt;/P&gt;</description>
    <pubDate>Mon, 26 Aug 2019 06:18:34 GMT</pubDate>
    <dc:creator>YangYY</dc:creator>
    <dc:date>2019-08-26T06:18:34Z</dc:date>
    <item>
      <title>how to plot the size difference?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/how-to-plot-the-size-difference/m-p/583813#M7887</link>
      <description>&lt;P&gt;I have variables country, continent and the populations for every year of 1800-2100. I have got the total size of each continent for different years. Now I need to use PROC SGPLOT and SERIES statement to plot the population growth of each continent since 1800.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I have no idea how to start. I might need to calculate the population difference first?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone could help?? Anything will be appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 04:36:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/how-to-plot-the-size-difference/m-p/583813#M7887</guid>
      <dc:creator>YangYY</dc:creator>
      <dc:date>2019-08-26T04:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to plot the size difference?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/how-to-plot-the-size-difference/m-p/583816#M7888</link>
      <description>&lt;P&gt;Can you provide some example of what your data looks like? Makes it much easier to provide a usable code answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 05:36:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/how-to-plot-the-size-difference/m-p/583816#M7888</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-08-26T05:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to plot the size difference?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/how-to-plot-the-size-difference/m-p/583822#M7889</link>
      <description>&lt;P&gt;Of course.&lt;/P&gt;&lt;P&gt;My data is attached and that is my latest result . Thank you for your reply!&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 06:18:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/how-to-plot-the-size-difference/m-p/583822#M7889</guid>
      <dc:creator>YangYY</dc:creator>
      <dc:date>2019-08-26T06:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to plot the size difference?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/how-to-plot-the-size-difference/m-p/583824#M7890</link>
      <description>&lt;P&gt;This should get you going &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Feel free to ask if you have questions&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title "Population Growth By Continent";
proc sgplot data=pop_summary;
    series x=year y=sum / group=continent;
    keylegend / position=nw location=inside across=1;
run;
title;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Udklip.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32012iB965BD1A7D0242F6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Udklip.PNG" alt="Udklip.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 06:32:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/how-to-plot-the-size-difference/m-p/583824#M7890</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-08-26T06:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to plot the size difference?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/how-to-plot-the-size-difference/m-p/583825#M7891</link>
      <description>&lt;P&gt;Thank you so much!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got another question about SAS studio.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc summary data=assign02.summary sum;&lt;BR /&gt;by continent;&lt;BR /&gt;var year1800-year2100;&lt;BR /&gt;output out=assign02.pop_summary sum=;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc transpose data=assign02.pop_summary out=assign02.pop_summary2(rename=(_NAME_=year) rename=(col1='total population'n));&lt;BR /&gt;var year1800-year2100;&lt;BR /&gt;by continent;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I don't know why, the continent are missing after proc transpose.&lt;/P&gt;&lt;P&gt;Is it because of my code got mistakes?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 06:48:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/how-to-plot-the-size-difference/m-p/583825#M7891</guid>
      <dc:creator>YangYY</dc:creator>
      <dc:date>2019-08-26T06:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to plot the size difference?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/how-to-plot-the-size-difference/m-p/584076#M7898</link>
      <description>&lt;P&gt;Are you referring to a single observation without continent? That has very large values for the year values?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That, which would have _type_=0 is the data set total summary. If you do not use NWAY or one of the other options the proc summary will create a summary of all combinations of your CLASS variables, including one with all values. Print your assign02.pop_summary&amp;nbsp;dataset. I suspect you will find 7 rows of data, your 6 continents plus the overall total.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that is the case then try adding NWAY to the proc summary. That will only have the continent values. The option makes the output show only the combinations of all class variables with non-missing values.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 21:18:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/how-to-plot-the-size-difference/m-p/584076#M7898</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-08-26T21:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to plot the size difference?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/how-to-plot-the-size-difference/m-p/584148#M7899</link>
      <description>&lt;P&gt;No. The whole variable of continent of all observations are missing. Only the variable name "continent" does show.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But thank you for your reply!&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2019 08:38:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/how-to-plot-the-size-difference/m-p/584148#M7899</guid>
      <dc:creator>YangYY</dc:creator>
      <dc:date>2019-08-27T08:38:45Z</dc:date>
    </item>
  </channel>
</rss>

