<?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 PROC SGPLOT in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-SGPLOT/m-p/781364#M249023</link>
    <description>&lt;P&gt;Attempting to create a figure using proc sgplot.&amp;nbsp; Using the GROUP option and want the lines of each group to be different.&amp;nbsp; This is why I specify lineattrs=(pattern=).&amp;nbsp; When I do this, all of the lines on the graph have the same pattern.&amp;nbsp; How do I get the lines to be different patterns?&amp;nbsp; I have four different groups.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc sgplot data=OutStats_sort;&lt;BR /&gt;title"Sampling Distribution of Sample Mean";&lt;BR /&gt;density SampleMean/type=normal group=N lineattrs=(pattern=3);&lt;BR /&gt;xaxis label="X";&lt;BR /&gt;label N="Sample Size";&lt;BR /&gt;run;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Nov 2021 19:13:33 GMT</pubDate>
    <dc:creator>PaulN</dc:creator>
    <dc:date>2021-11-19T19:13:33Z</dc:date>
    <item>
      <title>PROC SGPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SGPLOT/m-p/781364#M249023</link>
      <description>&lt;P&gt;Attempting to create a figure using proc sgplot.&amp;nbsp; Using the GROUP option and want the lines of each group to be different.&amp;nbsp; This is why I specify lineattrs=(pattern=).&amp;nbsp; When I do this, all of the lines on the graph have the same pattern.&amp;nbsp; How do I get the lines to be different patterns?&amp;nbsp; I have four different groups.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc sgplot data=OutStats_sort;&lt;BR /&gt;title"Sampling Distribution of Sample Mean";&lt;BR /&gt;density SampleMean/type=normal group=N lineattrs=(pattern=3);&lt;BR /&gt;xaxis label="X";&lt;BR /&gt;label N="Sample Size";&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Nov 2021 19:13:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SGPLOT/m-p/781364#M249023</guid>
      <dc:creator>PaulN</dc:creator>
      <dc:date>2021-11-19T19:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SGPLOT/m-p/781372#M249024</link>
      <description>&lt;P&gt;How "different" do you mean? Your code, as you have discovered sets the pattern to number 3. Period.&lt;/P&gt;
&lt;P&gt;Did you run the code without the lineattrs option and didn't like it?&lt;/P&gt;
&lt;P&gt;You can use the STYLEATTRS statement with the DATALINEPATTERNS option to provide a list of patterns to override the default such as&lt;/P&gt;
&lt;PRE&gt;proc sgplot data=OutStats_sort;
title"Sampling Distribution of Sample Mean";
styleattrs  datalinepatterns=(3 dot solid longdash ) ; 
/* obviously I do not know which patterns you want*/
density SampleMean/type=normal group=N;
xaxis label="X";
label N="Sample Size";
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Nov 2021 19:35:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SGPLOT/m-p/781372#M249024</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-11-19T19:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SGPLOT/m-p/781374#M249025</link>
      <description>&lt;P&gt;When I exclude LINEATTRS=(PATTERN=), SAS gives me lines with different colors.&amp;nbsp; I need to produce a document in black and white so the different colors don't help that much.&amp;nbsp; Attempting to get the lines to appear different in a black and white document.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Nov 2021 19:43:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SGPLOT/m-p/781374#M249025</guid>
      <dc:creator>PaulN</dc:creator>
      <dc:date>2021-11-19T19:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SGPLOT/m-p/781375#M249026</link>
      <description>&lt;P&gt;I changed my code to:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc sgplot data=OutStats_sort;&lt;BR /&gt;title"Sampling Distribution of Sample Mean";&lt;BR /&gt;styleattrs datalinepatterns=(dot dash solid longdash);&lt;BR /&gt;density SampleMean/type=normal group=N;&lt;BR /&gt;xaxis label="X";&lt;BR /&gt;label N="Sample Size";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run the code SAS is using the FIRST datalinepatterns for all four groups.&amp;nbsp; I can't get SAS to use different patterns for different GROUPs.&amp;nbsp; Any suggestions?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Nov 2021 20:04:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SGPLOT/m-p/781375#M249026</guid>
      <dc:creator>PaulN</dc:creator>
      <dc:date>2021-11-19T20:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SGPLOT/m-p/781391#M249029</link>
      <description>&lt;P&gt;What about using a style to control that instead, Journal is a good one for black and white.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
ods html file='path to your html file' style=journal;

proc sgplot data=OutStats_sort;
title"Sampling Distribution of Sample Mean";
density SampleMean/type=normal group=N;
xaxis label="X";
label N="Sample Size";
run;&lt;BR /&gt;&lt;BR /&gt;ods&amp;nbsp;html&amp;nbsp;close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 19 Nov 2021 21:10:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SGPLOT/m-p/781391#M249029</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-11-19T21:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SGPLOT/m-p/781404#M249037</link>
      <description>&lt;P&gt;You search SAS documentation long enough and try...try...try...and try again, and you can solve your own problems.&amp;nbsp; I got it!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;ods graphics on/attrpriority=none&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sgplot data=OutStats_sort;&lt;BR /&gt;title"Sampling Distribution of Sample Mean";&lt;BR /&gt;styleattrs datalinepatterns=(dot dash solid longdash);&lt;BR /&gt;density SampleMean/group=N type=normal;&lt;BR /&gt;xaxis label="X";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods graphics off;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;label N="Sample Size";&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Nov 2021 22:02:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SGPLOT/m-p/781404#M249037</guid>
      <dc:creator>PaulN</dc:creator>
      <dc:date>2021-11-19T22:02:07Z</dc:date>
    </item>
  </channel>
</rss>

