<?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: Graphing with series as variable in a single column in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Graphing-with-series-as-variable-in-a-single-column/m-p/535449#M6490</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Biggest difference between using Style Attributes and Attribute Maps is Attribute maps ensure the same variable value has the same colours/markers across multiple graphs. This is important because if you have a missing record for one group in one dataset/graph, the atttributes are selected in order so it may not always match. Ergo, I default to using attribute maps because it's safer.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Which is why I supplied an example where the result changes based on data order and mentioned that as a potential issue.&lt;/P&gt;
&lt;P&gt;But sometimes we only need one graph quickly and I haven't really got a good way to make a quick DATTRMAP set for that case.&lt;/P&gt;</description>
    <pubDate>Wed, 13 Feb 2019 23:10:21 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2019-02-13T23:10:21Z</dc:date>
    <item>
      <title>Graphing with series as variable in a single column</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Graphing-with-series-as-variable-in-a-single-column/m-p/535289#M6446</link>
      <description>&lt;P&gt;I am trying to graph the results of a freq procedure output group*year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a list of variables in a group column (group 1, group 2, group 3, etc.) I would like these to be the series.&lt;/P&gt;&lt;P&gt;Column 2 is a year variable 2000, 2001, 2002, etc.&lt;/P&gt;&lt;P&gt;Column 3 is the PCT_COL from the output of the freq procedure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to graph trends over time of Y value (PCT_COL) with X value being year and the different series being the groups 1, 2, 3. etc. in column 1. Is there some way to do this. I have searched and searched and just can't seem to even find the right search terms.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically would like to graph&amp;nbsp; SERIES X = Year Y = PCT_COL&amp;nbsp;&lt;/P&gt;&lt;P&gt;BY Group.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 16:53:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Graphing-with-series-as-variable-in-a-single-column/m-p/535289#M6446</guid>
      <dc:creator>thanksforhelp12</dc:creator>
      <dc:date>2019-02-13T16:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Graphing with series as variable in a single column</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Graphing-with-series-as-variable-in-a-single-column/m-p/535294#M6447</link>
      <description>GROUP option on the SERIES statement.</description>
      <pubDate>Wed, 13 Feb 2019 17:01:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Graphing-with-series-as-variable-in-a-single-column/m-p/535294#M6447</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-02-13T17:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Graphing with series as variable in a single column</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Graphing-with-series-as-variable-in-a-single-column/m-p/535320#M6458</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/256012"&gt;@thanksforhelp12&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am trying to graph the results of a freq procedure output group*year.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a list of variables in a group column (group 1, group 2, group 3, etc.) I would like these to be the series.&lt;/P&gt;
&lt;P&gt;Column 2 is a year variable 2000, 2001, 2002, etc.&lt;/P&gt;
&lt;P&gt;Column 3 is the PCT_COL from the output of the freq procedure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to graph trends over time of Y value (PCT_COL) with X value being year and the different series being the groups 1, 2, 3. etc. in column 1. Is there some way to do this. I have searched and searched and just can't seem to even find the right search terms.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basically would like to graph&amp;nbsp; SERIES X = Year Y = PCT_COL&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BY Group.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Have you created a data set from Proc freq output?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 17:49:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Graphing-with-series-as-variable-in-a-single-column/m-p/535320#M6458</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-02-13T17:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Graphing with series as variable in a single column</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Graphing-with-series-as-variable-in-a-single-column/m-p/535348#M6469</link>
      <description>&lt;P&gt;Amazing, this is almost exactly the answer.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Does this make you have to have the same markers for all the points. I couldn't figure out how to change the markers between the specific groups&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 18:33:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Graphing-with-series-as-variable-in-a-single-column/m-p/535348#M6469</guid>
      <dc:creator>thanksforhelp12</dc:creator>
      <dc:date>2019-02-13T18:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: Graphing with series as variable in a single column</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Graphing-with-series-as-variable-in-a-single-column/m-p/535356#M6472</link>
      <description>Markers are default, to specify them and/or other line features I recommend the discrete attribute map. The documentation has some good examples.</description>
      <pubDate>Wed, 13 Feb 2019 18:45:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Graphing-with-series-as-variable-in-a-single-column/m-p/535356#M6472</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-02-13T18:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: Graphing with series as variable in a single column</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Graphing-with-series-as-variable-in-a-single-column/m-p/535438#M6484</link>
      <description>&lt;P&gt;This is another approach though the discrete attribute map option would be data order independent.&lt;/P&gt;
&lt;PRE&gt;proc sgplot data=sashelp.class;
   title "Default markers";
   scatter x=height y=weight/group=age;
run;

proc sgplot data=sashelp.class;
   title "Style overide markers";
   styleattrs
      datacontrastcolors =(pink red darkred lightgreen green darkgreen)
      datasymbols=(circlefilled diamondfilled homedownfilled tack triangle plus)
   ;
   scatter x=height y=weight/group=age;
run;
proc sort data=sashelp.class out=work.class;
  by descending age sex;
run;
proc sgplot data=work.class;
    title "Style overide markers with different data order";
  styleattrs
      datacontrastcolors =(pink red darkred lightgreen green darkgreen)
      datasymbols=(circlefilled diamondfilled homedownfilled tack triangle plus)
   ;
   scatter x=height y=weight/group=age;
run;   title;
&lt;/PRE&gt;
&lt;P&gt;I used a scatter plot as I know the SASHELP.Class data set well enough to play with.&lt;/P&gt;
&lt;P&gt;Series would also have the styleattrs for lines datalinepatterns.&lt;/P&gt;
&lt;P&gt;LOTS of graphic options.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 22:24:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Graphing-with-series-as-variable-in-a-single-column/m-p/535438#M6484</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-02-13T22:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Graphing with series as variable in a single column</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Graphing-with-series-as-variable-in-a-single-column/m-p/535443#M6485</link>
      <description>Biggest difference between using Style Attributes and Attribute Maps is Attribute maps ensure the same variable value has the same colours/markers across multiple graphs. This is important because if you have a missing record for one group in one dataset/graph, the atttributes are selected in order so it may not always match. Ergo, I default to using attribute maps because it's safer.</description>
      <pubDate>Wed, 13 Feb 2019 22:36:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Graphing-with-series-as-variable-in-a-single-column/m-p/535443#M6485</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-02-13T22:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Graphing with series as variable in a single column</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Graphing-with-series-as-variable-in-a-single-column/m-p/535444#M6486</link>
      <description>&lt;P&gt;Thanks I will read into this. SAS seems to have the most unintuitive graphing language I've ever seen.&lt;BR /&gt;&lt;BR /&gt;Have spent half the day trying to alter the thickness of the border of the graph part itself and the figure without any progress.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 22:40:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Graphing-with-series-as-variable-in-a-single-column/m-p/535444#M6486</guid>
      <dc:creator>thanksforhelp12</dc:creator>
      <dc:date>2019-02-13T22:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Graphing with series as variable in a single column</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Graphing-with-series-as-variable-in-a-single-column/m-p/535449#M6490</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Biggest difference between using Style Attributes and Attribute Maps is Attribute maps ensure the same variable value has the same colours/markers across multiple graphs. This is important because if you have a missing record for one group in one dataset/graph, the atttributes are selected in order so it may not always match. Ergo, I default to using attribute maps because it's safer.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Which is why I supplied an example where the result changes based on data order and mentioned that as a potential issue.&lt;/P&gt;
&lt;P&gt;But sometimes we only need one graph quickly and I haven't really got a good way to make a quick DATTRMAP set for that case.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 23:10:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Graphing-with-series-as-variable-in-a-single-column/m-p/535449#M6490</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-02-13T23:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Graphing with series as variable in a single column</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Graphing-with-series-as-variable-in-a-single-column/m-p/535450#M6491</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Fair enough, I didn't run the code.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I found this statement ambiguous though:&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;This is another approach though the discrete attribute map option would be &lt;STRONG&gt;data order independent.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Independent of data order would probably be more clear?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 23:13:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Graphing-with-series-as-variable-in-a-single-column/m-p/535450#M6491</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-02-13T23:13:13Z</dc:date>
    </item>
  </channel>
</rss>

