<?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 Differences in SGPLOT output: in SAS studio or downloaded PDF versus downloaded RTF in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Differences-in-SGPLOT-output-in-SAS-studio-or-downloaded-PDF/m-p/356200#M12421</link>
    <description>&lt;P&gt;I do not have a lot of experience creating figures in SAS, but I am hoping to create a scatterplot with the font type I am seeing in both the SAS Studio output and downloaded PDF (i.e., Arial font). But most of the attributes I want are in the downloaded RTF version (i.e., different style/color markers between groups, different style/color regression lines between groups). Here is my SAS program:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;FONT size="2"&gt;proc template;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;define style styles.arial;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;parent=styles.listing; /* Or your favorite style */&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;style graphfonts from graphfonts / &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;      'GraphDataFont' = ("Arial")               &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;      'GraphUnicodeFont' = ("Arial")                    &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;      'GraphValueFont' = ("Arial")                &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;      'GraphLabel2Font' = ("Arial")            &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;      'GraphLabelFont' = ("Arial")            &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;      'GraphFootnoteFont' = ("Arial")            &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;      'GraphTitleFont' = ("Arial")          &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;      'GraphTitle1Font' = ("Arial")        &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;      'GraphAnnoFont' = ("Arial")   ;         &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;end;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;run;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;ods listing style=arial;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;proc sgplot data = sleep_amt ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;xaxis label = "Sleep Hours - Baseline";&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;yaxis label = "Change in Sleep Hours - 12 months";&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;reg x = sleep_amt_0 y = sleep_change / group = rand_new jitter  ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;where event =0;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;refline   0;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;refline 6 / AXIS= X LABEL = "6 hours of sleep" LABELLOC= outside;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;refline 9 / AXIS= X  LABEL = "9 hours of sleep" LABELLOC= outside;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;run;&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp; Here is the output in&amp;nbsp;the SAS Studio output and downloaded PDF:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/8720iE38E8B8FC9B02EB1/image-size/medium?v=1.0&amp;amp;px=-1" border="0" alt="2017-05-04_2017.png" title="2017-05-04_2017.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Here is the output in the downloaded PDF:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/8721i86D480444FA8D1CB/image-size/medium?v=1.0&amp;amp;px=-1" border="0" alt="2017-05-04_2020.png" title="2017-05-04_2020.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also hope to display alternative text instead of the variable name, &lt;FONT face="courier new,courier"&gt;rand_new&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please pardon me if this is not actually a SAS Studio-/University-specific issue.&lt;/P&gt;</description>
    <pubDate>Fri, 05 May 2017 02:24:27 GMT</pubDate>
    <dc:creator>trickeration</dc:creator>
    <dc:date>2017-05-05T02:24:27Z</dc:date>
    <item>
      <title>Differences in SGPLOT output: in SAS studio or downloaded PDF versus downloaded RTF</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Differences-in-SGPLOT-output-in-SAS-studio-or-downloaded-PDF/m-p/356200#M12421</link>
      <description>&lt;P&gt;I do not have a lot of experience creating figures in SAS, but I am hoping to create a scatterplot with the font type I am seeing in both the SAS Studio output and downloaded PDF (i.e., Arial font). But most of the attributes I want are in the downloaded RTF version (i.e., different style/color markers between groups, different style/color regression lines between groups). Here is my SAS program:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;FONT size="2"&gt;proc template;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;define style styles.arial;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;parent=styles.listing; /* Or your favorite style */&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;style graphfonts from graphfonts / &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;      'GraphDataFont' = ("Arial")               &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;      'GraphUnicodeFont' = ("Arial")                    &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;      'GraphValueFont' = ("Arial")                &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;      'GraphLabel2Font' = ("Arial")            &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;      'GraphLabelFont' = ("Arial")            &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;      'GraphFootnoteFont' = ("Arial")            &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;      'GraphTitleFont' = ("Arial")          &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;      'GraphTitle1Font' = ("Arial")        &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;      'GraphAnnoFont' = ("Arial")   ;         &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;end;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;run;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;ods listing style=arial;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;proc sgplot data = sleep_amt ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;xaxis label = "Sleep Hours - Baseline";&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;yaxis label = "Change in Sleep Hours - 12 months";&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;reg x = sleep_amt_0 y = sleep_change / group = rand_new jitter  ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;where event =0;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;refline   0;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;refline 6 / AXIS= X LABEL = "6 hours of sleep" LABELLOC= outside;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;refline 9 / AXIS= X  LABEL = "9 hours of sleep" LABELLOC= outside;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;run;&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp; Here is the output in&amp;nbsp;the SAS Studio output and downloaded PDF:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/8720iE38E8B8FC9B02EB1/image-size/medium?v=1.0&amp;amp;px=-1" border="0" alt="2017-05-04_2017.png" title="2017-05-04_2017.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Here is the output in the downloaded PDF:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/8721i86D480444FA8D1CB/image-size/medium?v=1.0&amp;amp;px=-1" border="0" alt="2017-05-04_2020.png" title="2017-05-04_2020.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also hope to display alternative text instead of the variable name, &lt;FONT face="courier new,courier"&gt;rand_new&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please pardon me if this is not actually a SAS Studio-/University-specific issue.&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 02:24:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Differences-in-SGPLOT-output-in-SAS-studio-or-downloaded-PDF/m-p/356200#M12421</guid>
      <dc:creator>trickeration</dc:creator>
      <dc:date>2017-05-05T02:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Differences in SGPLOT output: in SAS studio or downloaded PDF versus downloaded RTF</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Differences-in-SGPLOT-output-in-SAS-studio-or-downloaded-PDF/m-p/357896#M12422</link>
      <description>&lt;P&gt;The easiest way for you to achieve what you want is to use the ATTRPRIORITY=NONE option on the ODS GRAPHICS statement. Just add that statement before generating any of your graphic output to defeat the COLOR prioirty in the default styles used by those destinations. That setting will be active until you change it, or you reset your graphics options. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;FONT size="2"&gt;ods graphics / attrpriority=none;&lt;BR /&gt;proc sgplot data = sleep_amt ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;xaxis label = "Sleep Hours - Baseline";&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;yaxis label = "Change in Sleep Hours - 12 months";&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;reg x = sleep_amt_0 y = sleep_change / group = rand_new jitter  ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;where event =0;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;refline   0;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;refline 6 / AXIS= X LABEL = "6 hours of sleep" LABELLOC= outside;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;refline 9 / AXIS= X  LABEL = "9 hours of sleep" LABELLOC= outside;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;run;&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 13:59:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Differences-in-SGPLOT-output-in-SAS-studio-or-downloaded-PDF/m-p/357896#M12422</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2017-05-11T13:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: Differences in SGPLOT output: in SAS studio or downloaded PDF versus downloaded RTF</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Differences-in-SGPLOT-output-in-SAS-studio-or-downloaded-PDF/m-p/357900#M12423</link>
      <description>&lt;P&gt;You can change the legend title by two ways:&lt;/P&gt;
&lt;P&gt;1 &amp;nbsp;Add a LABEL to your variable "rand_new".&lt;/P&gt;
&lt;P&gt;2. &amp;nbsp;Use the TITLE option in the KEYLEGEND statement.&lt;/P&gt;
&lt;P&gt;Since your&amp;nbsp;legend is automatically generated, you can add a KEYLEGEND statement as follows:&lt;/P&gt;
&lt;P&gt;KEYLEGEND / title="title";&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 14:05:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Differences-in-SGPLOT-output-in-SAS-studio-or-downloaded-PDF/m-p/357900#M12423</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2017-05-11T14:05:59Z</dc:date>
    </item>
  </channel>
</rss>

