<?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 make a table and corresponding line graph? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-make-a-table-and-corresponding-line-graph/m-p/411557#M67354</link>
    <description>&lt;P&gt;You are welcome. If your data looks like what you have posted, this might get you started on the graph you want to create&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input Fruits$ Tom Michael Kelly Emi;
datalines;
Apple 3 1 2 3
Pear 1 3 0 2
Banana 1.5 2 1 2.5
;

proc sort data=have;
	by Fruits;
run;

proc transpose data=have out=have_long(rename=(_NAME_=Name COL1=eat));
	by Fruits;
run;

proc sgplot data=have_long noautolegend;
	title "Fruits";
	styleattrs datasymbols=(CircleFilled SquareFilled TriangleFilled);
	series x=Name y=eat / group=Fruits markers;
	xaxis display=(nolabel) grid;
	yaxis values=(0 to 3 by 1) grid label="Frequency of Eating";
run;
title;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you want to further edit the visual aspects of the plot, consult the &lt;A href="http://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=n0yjdd910dh59zn1toodgupaj4v9.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_self"&gt;PROC SGPLOT Documentation&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Nov 2017 15:52:37 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2017-11-08T15:52:37Z</dc:date>
    <item>
      <title>How to make a table and corresponding line graph?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-make-a-table-and-corresponding-line-graph/m-p/411477#M67343</link>
      <description>&lt;P&gt;(Sorry if I post this to the wrong location)&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I just started using SAS Univ. Edition(latest version) and I have several questions.&lt;/P&gt;&lt;P&gt;I'm trying to create a table and corresponding line chart, which I found in the previous research paper of my research field.&lt;/P&gt;&lt;P&gt;(The following is the replicate of the original table and graph by myself. Numbers or names etc are all made-up. What I want to make is this type of table and chart.)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="example.jpg" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16526i97D331B458C1A75E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="example.jpg" alt="example.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This table and charts are made with SAS (it's what the paragraph above states.), so there should be any way to create this.&lt;/P&gt;&lt;P&gt;However, since I'm not getting used to this yet, I couldn't find any at this stage.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could any of you have a solution for this?&lt;/P&gt;&lt;P&gt;Any help will be welcome!&lt;/P&gt;&lt;P&gt;If you have any question regarding this photo, just reply to my post and I'll answer it.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 12:29:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-make-a-table-and-corresponding-line-graph/m-p/411477#M67343</guid>
      <dc:creator>Turtle</dc:creator>
      <dc:date>2017-11-08T12:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a table and corresponding line graph?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-make-a-table-and-corresponding-line-graph/m-p/411480#M67344</link>
      <description>&lt;P&gt;Look at procs freq, tabulate, means, report, and sgplot to get started.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 11:19:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-make-a-table-and-corresponding-line-graph/m-p/411480#M67344</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2017-11-08T11:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a table and corresponding line graph?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-make-a-table-and-corresponding-line-graph/m-p/411485#M67345</link>
      <description>&lt;P&gt;Replicate the data in your photo with made-up values and post it along with a drawing/sketch of what you want you output table and graph to look like. That way, we are able to give you a usable code answer, you can apply the code to your actual problem and you don't have to worry about copyright issues &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 11:40:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-make-a-table-and-corresponding-line-graph/m-p/411485#M67345</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-11-08T11:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a table and corresponding line graph?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-make-a-table-and-corresponding-line-graph/m-p/411488#M67346</link>
      <description>&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;I just want to confirm whether I'm understanding what you've adviced&amp;nbsp;me correctly or not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc freq-???&lt;/P&gt;&lt;P&gt;proc tabulate-for making a table&lt;/P&gt;&lt;P&gt;proc means-for getting the average&lt;/P&gt;&lt;P&gt;proc report-for printing the data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;proc sgplot-for drawing graph connecting average points?(using vline?)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I wonder what proc freq for... could you explain what it is for(and anything if I'm misunderstanding)?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 11:46:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-make-a-table-and-corresponding-line-graph/m-p/411488#M67346</guid>
      <dc:creator>Turtle</dc:creator>
      <dc:date>2017-11-08T11:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a table and corresponding line graph?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-make-a-table-and-corresponding-line-graph/m-p/411489#M67347</link>
      <description>&lt;P&gt;Thank you for the reply.&lt;/P&gt;&lt;P&gt;OK, I'll make the made-up table and graph from now, and add it to the original post as attachments.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 11:50:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-make-a-table-and-corresponding-line-graph/m-p/411489#M67347</guid>
      <dc:creator>Turtle</dc:creator>
      <dc:date>2017-11-08T11:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a table and corresponding line graph?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-make-a-table-and-corresponding-line-graph/m-p/411501#M67348</link>
      <description>&lt;P&gt;Just to notify I changed the inserted photo to the replicate made-up one!&lt;/P&gt;&lt;P&gt;Thanks for the advice!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 12:37:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-make-a-table-and-corresponding-line-graph/m-p/411501#M67348</guid>
      <dc:creator>Turtle</dc:creator>
      <dc:date>2017-11-08T12:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a table and corresponding line graph?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-make-a-table-and-corresponding-line-graph/m-p/411520#M67352</link>
      <description>&lt;P&gt;First of all, start out by creating a dataset. Creating test data works in the same way that we prefer for posting example data here:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input name $ fruit $ eating;
cards;
Tom Apple 3
Tom Pear 1
Tom Banana 1.5
Michael Apple 1
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Expand the step so it creates all your data. Understanding this simple data step is your first learning step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Next, tinker around with applying the procedures named by the others to your dataset and see what happens.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 13:41:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-make-a-table-and-corresponding-line-graph/m-p/411520#M67352</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-11-08T13:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a table and corresponding line graph?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-make-a-table-and-corresponding-line-graph/m-p/411531#M67353</link>
      <description>&lt;P&gt;OK, I will.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 14:46:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-make-a-table-and-corresponding-line-graph/m-p/411531#M67353</guid>
      <dc:creator>Turtle</dc:creator>
      <dc:date>2017-11-08T14:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a table and corresponding line graph?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-make-a-table-and-corresponding-line-graph/m-p/411557#M67354</link>
      <description>&lt;P&gt;You are welcome. If your data looks like what you have posted, this might get you started on the graph you want to create&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input Fruits$ Tom Michael Kelly Emi;
datalines;
Apple 3 1 2 3
Pear 1 3 0 2
Banana 1.5 2 1 2.5
;

proc sort data=have;
	by Fruits;
run;

proc transpose data=have out=have_long(rename=(_NAME_=Name COL1=eat));
	by Fruits;
run;

proc sgplot data=have_long noautolegend;
	title "Fruits";
	styleattrs datasymbols=(CircleFilled SquareFilled TriangleFilled);
	series x=Name y=eat / group=Fruits markers;
	xaxis display=(nolabel) grid;
	yaxis values=(0 to 3 by 1) grid label="Frequency of Eating";
run;
title;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you want to further edit the visual aspects of the plot, consult the &lt;A href="http://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=n0yjdd910dh59zn1toodgupaj4v9.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_self"&gt;PROC SGPLOT Documentation&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 15:52:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-make-a-table-and-corresponding-line-graph/m-p/411557#M67354</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-11-08T15:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a table and corresponding line graph?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-make-a-table-and-corresponding-line-graph/m-p/411583#M67355</link>
      <description>&lt;P&gt;Thank you very much for your help!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I copied the code and paste it into the program area, and it perfectly worked!!&lt;/P&gt;&lt;P&gt;Amazing! I should've&amp;nbsp;waited for your reply before deciding best solution...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it seems there are lots of stuff which I can customize.&lt;/P&gt;&lt;P&gt;I'll have a look at the page and see what I need to do to make it closer to what I imagined it to be.&lt;/P&gt;&lt;P&gt;(like changing ● in the graph to&amp;nbsp;■ and ◆, changing lines, adding explanatory notes etc)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again&amp;nbsp;for helping me a lot!!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 16:39:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-make-a-table-and-corresponding-line-graph/m-p/411583#M67355</guid>
      <dc:creator>Turtle</dc:creator>
      <dc:date>2017-11-08T16:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a table and corresponding line graph?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-make-a-table-and-corresponding-line-graph/m-p/411826#M67362</link>
      <description>&lt;P&gt;Anytime, glad to help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 06:15:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-make-a-table-and-corresponding-line-graph/m-p/411826#M67362</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-11-09T06:15:12Z</dc:date>
    </item>
  </channel>
</rss>

