<?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 turn results from Proc Freq table into an overlapping line plot in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-turn-results-from-Proc-Freq-table-into-an-overlapping/m-p/805409#M15948</link>
    <description>&lt;P&gt;Thank you! This is exactly what I needed.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;My solution:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC FREQ DATA=HARMON_FINAL ;&lt;BR /&gt;TABLES PRIORITY*SURWAVE*PATCH/OUTPCT OUT=FREQOUT_PATCH;&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DATA PATCHUSE;&lt;BR /&gt;SET FREQOUT_PATCH;&lt;BR /&gt;IF SURWAVE=7 THEN DELETE;&lt;BR /&gt;IF PATCH~=1 THEN DELETE;&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC SGPLOT DATA=PATCHUSE;&lt;BR /&gt;TITLE "PATCH USE BY PRIORITY GROUP";&lt;BR /&gt;SCATTER X=SURWAVE Y=PCT_ROW /GROUP=PRIORITY;&lt;BR /&gt;SERIES X=SURWAVE Y=PCT_ROW /GROUP=PRIORITY;&lt;BR /&gt;XAXIS LABEL="SURVEY WAVE";&lt;BR /&gt;XAXIS TYPE=DISCRETE;&lt;BR /&gt;YAXIS LABEL="PERCENTAGE OF PARTICIPANTS WHO USED PATCH";&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-03-31 at 5.32.51 PM.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70016iEC49947708240968/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2022-03-31 at 5.32.51 PM.png" alt="Screen Shot 2022-03-31 at 5.32.51 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 31 Mar 2022 23:33:27 GMT</pubDate>
    <dc:creator>Deanna_Payne</dc:creator>
    <dc:date>2022-03-31T23:33:27Z</dc:date>
    <item>
      <title>How to turn results from Proc Freq table into an overlapping line plot</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-turn-results-from-Proc-Freq-table-into-an-overlapping/m-p/805400#M15946</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to turn the results from PROC FREQ into an overlapping line plot where each line is a different 'priority group' y axis is percentage of priority group who uses Patch out of total priority group and x axis is years (2003, 2010, 2011).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Priority Groups:&lt;/P&gt;&lt;P&gt;Hispanic&lt;/P&gt;&lt;P&gt;NH White&lt;/P&gt;&lt;P&gt;NH Black&lt;/P&gt;&lt;P&gt;NH Asian/PI&lt;/P&gt;&lt;P&gt;NH Indigenous&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Patch: Yes , No, NoResponse&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What I currently have&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC FREQ DATA=HARMON_FINAL(WHERE=(SURYEAR&amp;lt;2014));&lt;/P&gt;&lt;P&gt;TABLES PRIORITY*SURYEAR*PATCH/ PLOTS=FREQPLOT;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What it gives me a unique table for each priority group (for example Hispanic Group)&lt;/STRONG&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-03-31 at 3.59.07 PM.png" style="width: 994px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70015i60DCE86DDD2C0F2B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2022-03-31 at 3.59.07 PM.png" alt="Screen Shot 2022-03-31 at 3.59.07 PM.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;STRONG&gt;What I want instead:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Dot graph with lines connecting the same priority group across all years&lt;/P&gt;&lt;P&gt;Percentage of patch 'yes' on Yaxis and&lt;/P&gt;&lt;P&gt;Survey Year on X axis&lt;/P&gt;&lt;P&gt;and 5 lines (one for each priority group)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any advice.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 22:10:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-turn-results-from-Proc-Freq-table-into-an-overlapping/m-p/805400#M15946</guid>
      <dc:creator>Deanna_Payne</dc:creator>
      <dc:date>2022-03-31T22:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to turn results from Proc Freq table into an overlapping line plot</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-turn-results-from-Proc-Freq-table-into-an-overlapping/m-p/805405#M15947</link>
      <description>&lt;P&gt;Summarize the data and create an output data set to use in proc sgplot.&lt;/P&gt;
&lt;P&gt;Look at this page for a very similar request. A proc freq example is towards the bottom.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/How-do-I-create-a-line-graph-showing-proportion-by-age-over-time/m-p/805381" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/How-do-I-create-a-line-graph-showing-proportion-by-age-over-time/m-p/805381&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You don't show how your Patch variable may be valued/coded but you would select the 'Yes' value in a where statement in proc sgplot as shown with your Patch variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The series statement has lots of options for setting lines using LINEATTRS=(pattern=dot ) for simple dotted line. There are 46 different line patterns available. You can set line thickness. With a group variable for your "priority group" values each line will default to a different appearance. I would start with that before adding additional options.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 22:38:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-turn-results-from-Proc-Freq-table-into-an-overlapping/m-p/805405#M15947</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-03-31T22:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to turn results from Proc Freq table into an overlapping line plot</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-turn-results-from-Proc-Freq-table-into-an-overlapping/m-p/805409#M15948</link>
      <description>&lt;P&gt;Thank you! This is exactly what I needed.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;My solution:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC FREQ DATA=HARMON_FINAL ;&lt;BR /&gt;TABLES PRIORITY*SURWAVE*PATCH/OUTPCT OUT=FREQOUT_PATCH;&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DATA PATCHUSE;&lt;BR /&gt;SET FREQOUT_PATCH;&lt;BR /&gt;IF SURWAVE=7 THEN DELETE;&lt;BR /&gt;IF PATCH~=1 THEN DELETE;&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC SGPLOT DATA=PATCHUSE;&lt;BR /&gt;TITLE "PATCH USE BY PRIORITY GROUP";&lt;BR /&gt;SCATTER X=SURWAVE Y=PCT_ROW /GROUP=PRIORITY;&lt;BR /&gt;SERIES X=SURWAVE Y=PCT_ROW /GROUP=PRIORITY;&lt;BR /&gt;XAXIS LABEL="SURVEY WAVE";&lt;BR /&gt;XAXIS TYPE=DISCRETE;&lt;BR /&gt;YAXIS LABEL="PERCENTAGE OF PARTICIPANTS WHO USED PATCH";&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-03-31 at 5.32.51 PM.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70016iEC49947708240968/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2022-03-31 at 5.32.51 PM.png" alt="Screen Shot 2022-03-31 at 5.32.51 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 23:33:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-turn-results-from-Proc-Freq-table-into-an-overlapping/m-p/805409#M15948</guid>
      <dc:creator>Deanna_Payne</dc:creator>
      <dc:date>2022-03-31T23:33:27Z</dc:date>
    </item>
  </channel>
</rss>

