<?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: create the line chart in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/create-the-line-chart/m-p/605577#M175776</link>
    <description>You really should start with what you have and what you want. Use SGPANEL for this type of graph. &lt;BR /&gt;Not sure how the legend part would work you'll need to customize that with keylegend. &lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 19 Nov 2019 23:17:50 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-11-19T23:17:50Z</dc:date>
    <item>
      <title>create the line chart</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-the-line-chart/m-p/605462#M175728</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for the .excel file in the attachment, how to create the line chart of each "person_ctry_code" group, which just like the following picture?&lt;/P&gt;&lt;P&gt;The Y-axis is the no_app_per_year and&amp;nbsp;no_app_per_year;&lt;/P&gt;&lt;P&gt;the&amp;nbsp;X-axis is the years from 1990 to 2012.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot (6).png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/34085i7E14D9EE2EDE8D91/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot (6).png" alt="Screenshot (6).png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 17:06:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-the-line-chart/m-p/605462#M175728</guid>
      <dc:creator>Alexxxxxxx</dc:creator>
      <dc:date>2019-11-19T17:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: create the line chart</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-the-line-chart/m-p/605465#M175730</link>
      <description>&lt;P&gt;Use PROC SGPLOT with the SERIES statement and the GROUP= option.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 17:09:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-the-line-chart/m-p/605465#M175730</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-11-19T17:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: create the line chart</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-the-line-chart/m-p/605475#M175733</link>
      <description>&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetVersion=9.4&amp;amp;docsetTarget=n06fb9ichgg6akn18060gbtvw9pw.htm&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetVersion=9.4&amp;amp;docsetTarget=n06fb9ichgg6akn18060gbtvw9pw.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Instead of SCATTER use SERIES but the rest is the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/262815"&gt;@Alexxxxxxx&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Dear all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for the .excel file in the attachment, how to create the line chart of each "person_ctry_code" group, which just like the following picture?&lt;/P&gt;
&lt;P&gt;The Y-axis is the no_app_per_year and&amp;nbsp;no_app_per_year;&lt;/P&gt;
&lt;P&gt;the&amp;nbsp;X-axis is the years from 1990 to 2012.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot (6).png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/34085i7E14D9EE2EDE8D91/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot (6).png" alt="Screenshot (6).png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 17:36:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-the-line-chart/m-p/605475#M175733</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-11-19T17:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: create the line chart</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-the-line-chart/m-p/605539#M175762</link>
      <description>&lt;P&gt;thanks for your suggestion.&lt;/P&gt;&lt;P&gt;however, when I use&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=Results.PATSTAT_no_full_hrm_with_ctry5;
   SERIES x=year y=no_app_per_year / group=person_ctry_code;
   SERIES x=year y=no_cit_per_year / group=person_ctry_code;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;all the lines are shown in one picture.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot (8).png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/34095i8F231777F8FEC574/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot (8).png" alt="Screenshot (8).png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Could you please give me more suggestions about this?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 21:27:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-the-line-chart/m-p/605539#M175762</guid>
      <dc:creator>Alexxxxxxx</dc:creator>
      <dc:date>2019-11-19T21:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: create the line chart</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-the-line-chart/m-p/605548#M175767</link>
      <description>For the split within a single graph you put the variable in the GROUP  = section. &lt;BR /&gt;For splitting it to mulitple graphs, put that variable in the BY statement instead.&lt;BR /&gt;&lt;BR /&gt;You don't provide data so we're kinda guessing here. &lt;BR /&gt;&lt;BR /&gt;proc sgplot data=have;&lt;BR /&gt;by var_for _each graph;&lt;BR /&gt;series x= year y=no_cit_per_year / group = person_ctry_code;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;If you want multiple graphs with different variables it's probably easiest to use multiple SGPLOT statements or restructure your data to support the BY processing.</description>
      <pubDate>Tue, 19 Nov 2019 22:00:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-the-line-chart/m-p/605548#M175767</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-11-19T22:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: create the line chart</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-the-line-chart/m-p/605567#M175772</link>
      <description>&lt;P&gt;the file is added in the attachment. please have a look.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;besides, by using the code&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=Results.PATSTAT_no_full_hrm_with_ctry5;
by person_ctry_code;
series x= year y=no_app_per_year / group = person_ctry_code;
series x= year y=no_cit_per_year / group = person_ctry_code;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I get a serious picture like&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-inline" image-alt="Screenshot (10).png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/34096iD56451D3C221CB4D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot (10).png" alt="Screenshot (10).png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;it looks much better now,&lt;/P&gt;&lt;P&gt;however, I expect to get a picture of each "person_ctry_cod" and for each picture, there are two lines, one is the&amp;nbsp;&lt;CODE class=" language-sas"&gt;no_app_per_year, one is&amp;nbsp;no_cit_per_year. for current picture, the explanation of line and Y-axis are wrong.&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class=" language-sas"&gt;Could you please give me some suggestions about this?&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class=" language-sas"&gt;thanks in advance&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 22:39:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-the-line-chart/m-p/605567#M175772</guid>
      <dc:creator>Alexxxxxxx</dc:creator>
      <dc:date>2019-11-19T22:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: create the line chart</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-the-line-chart/m-p/605570#M175773</link>
      <description>Remove the GROUP variable entirely.</description>
      <pubDate>Tue, 19 Nov 2019 22:46:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-the-line-chart/m-p/605570#M175773</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-11-19T22:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: create the line chart</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-the-line-chart/m-p/605575#M175774</link>
      <description>&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;now I get a serious picture like&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot (13).png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/34097iCF68BAFF70695B59/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot (13).png" alt="Screenshot (13).png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there any method to put them together like the Figure2.1,&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;1.delete the explanation at the Y-axis&lt;/P&gt;&lt;P&gt;2. replace ALL with&amp;nbsp;no_app_per_year, replace By corporation with&amp;nbsp;no_cit_per_year,&lt;/P&gt;&lt;P&gt;3. replace "PERSON_CTRY_CODE=AT" with "AT"?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WeChat Image_20191119230846.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/34098i52720AD74C053CBC/image-size/large?v=v2&amp;amp;px=999" role="button" title="WeChat Image_20191119230846.png" alt="WeChat Image_20191119230846.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Sorry, I have a lot of questions. I just start to learn how to use SAS to draw the line chart&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 23:15:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-the-line-chart/m-p/605575#M175774</guid>
      <dc:creator>Alexxxxxxx</dc:creator>
      <dc:date>2019-11-19T23:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: create the line chart</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-the-line-chart/m-p/605577#M175776</link>
      <description>You really should start with what you have and what you want. Use SGPANEL for this type of graph. &lt;BR /&gt;Not sure how the legend part would work you'll need to customize that with keylegend. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Nov 2019 23:17:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-the-line-chart/m-p/605577#M175776</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-11-19T23:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: create the line chart</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-the-line-chart/m-p/605703#M175800</link>
      <description>&lt;P&gt;Heat Map ?&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-inline" image-alt="x.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/34106i9856160E6A00AE9A/image-size/large?v=v2&amp;amp;px=999" role="button" title="x.png" alt="x.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 12:28:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-the-line-chart/m-p/605703#M175800</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-11-20T12:28:10Z</dc:date>
    </item>
  </channel>
</rss>

