<?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 SAS graphs in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-graphs/m-p/856250#M338332</link>
    <description>&lt;P&gt;I have the SGplot below. But the axis has some issues.&lt;/P&gt;
&lt;P&gt;1)&amp;nbsp;&lt;SPAN&gt;&amp;nbsp; X and Y axes are too light in shading &amp;amp; the numbers for calculated concentration and hours need to be black &amp;amp; bold. Can anyone help?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2)The color of the plot is blue, how do I change it to red?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3)&amp;nbsp;Once the figures are color-coded, can they be saved as a picture to conserve space&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC SGPLOT DATA=Uplex1;&lt;/P&gt;
&lt;P&gt;where Biomarker in ('IL-6');&lt;BR /&gt;VLINE Time /RESPONSE=data2 STAT=Mean group=Biomarker&lt;/P&gt;
&lt;P&gt;MARKERS LINEATTRS = (THICKNESS = 3);&lt;BR /&gt;yaxis label=' Log Concentration';&lt;BR /&gt;xaxis label='Time in Hours' values=(0 to 72 by 12);&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="desireatem_0-1675090080703.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79926iA551BEF469189D3C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="desireatem_0-1675090080703.png" alt="desireatem_0-1675090080703.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 30 Jan 2023 14:55:16 GMT</pubDate>
    <dc:creator>desireatem</dc:creator>
    <dc:date>2023-01-30T14:55:16Z</dc:date>
    <item>
      <title>SAS graphs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-graphs/m-p/856250#M338332</link>
      <description>&lt;P&gt;I have the SGplot below. But the axis has some issues.&lt;/P&gt;
&lt;P&gt;1)&amp;nbsp;&lt;SPAN&gt;&amp;nbsp; X and Y axes are too light in shading &amp;amp; the numbers for calculated concentration and hours need to be black &amp;amp; bold. Can anyone help?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2)The color of the plot is blue, how do I change it to red?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3)&amp;nbsp;Once the figures are color-coded, can they be saved as a picture to conserve space&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC SGPLOT DATA=Uplex1;&lt;/P&gt;
&lt;P&gt;where Biomarker in ('IL-6');&lt;BR /&gt;VLINE Time /RESPONSE=data2 STAT=Mean group=Biomarker&lt;/P&gt;
&lt;P&gt;MARKERS LINEATTRS = (THICKNESS = 3);&lt;BR /&gt;yaxis label=' Log Concentration';&lt;BR /&gt;xaxis label='Time in Hours' values=(0 to 72 by 12);&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="desireatem_0-1675090080703.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79926iA551BEF469189D3C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="desireatem_0-1675090080703.png" alt="desireatem_0-1675090080703.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2023 14:55:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-graphs/m-p/856250#M338332</guid>
      <dc:creator>desireatem</dc:creator>
      <dc:date>2023-01-30T14:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: SAS graphs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-graphs/m-p/856258#M338336</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/40563"&gt;@desireatem&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1)&amp;nbsp;&lt;SPAN&gt;&amp;nbsp; X and Y axes are too light in shading &amp;amp; the numbers for calculated concentration and hours need to be black &amp;amp; bold. Can anyone help?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;They look black to me, not sure what "too light in shading means" but try this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;xaxis valuesattrs=(Color=black Family=Arial Size=12 Style=Italic Weight=Bold);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and similarly in the yaxis statement&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;2)The color of the plot is blue, how do I change it to red?&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You already use the LINEATTRS= option. All of this is addressed in the PROC SGPLOT documentation under the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/grstatproc/p13y2w8p29m5ern1egkn010zn532.htm#n13hl89is45g3gn1f8raefqgskux" target="_self"&gt;LINEATTRS= option&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;3)&amp;nbsp;Once the figures are color-coded, can they be saved as a picture to conserve space&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;All PROC SGPLOT output can be saved, in many different ways, including copy/paste, or via ODS. There are many ODS destinations that will store your graphics in files with names that you specify, in folders that you specify, such as ODS HTML, ODS EXCEL, ODS PRINTER and probably 14 other destinations. Do you have a specific output requirement, such as a PNG file, or an Excel file? PS: I'm not sure that this saves any space.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2023 15:05:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-graphs/m-p/856258#M338336</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-01-30T15:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: SAS graphs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-graphs/m-p/856266#M338337</link>
      <description>&lt;P&gt;Thank you!&amp;nbsp; I am close. Is there a way to make the axis denser, this is the lines, they are thin?&amp;nbsp; The X and Y axes are too thin, can I make them denser?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TITLE " Biomarker concerntration within 72 hours";&lt;/P&gt;
&lt;P&gt;PROC SGPLOT DATA=Uplex1;&lt;/P&gt;
&lt;P&gt;where Biomarker in ('IL-6');&lt;BR /&gt;VLINE Time /RESPONSE=data2 STAT=Mean group=Biomarker&lt;BR /&gt;MARKERS LINEATTRS = (THICKNESS = 2 color=red);&lt;BR /&gt;YAXIS label=' Log Concentration' valuesattrs=(Color=black Family=Arial Size=12 Style=Italic Weight=Bold );&lt;BR /&gt;*xaxis valuesattrs=(Color=black Family=Arial Size=12 Style=Italic Weight=Bold );&lt;BR /&gt;xaxis label='Time in Hours' values=(0 to 72 by 12) valuesattrs=(Color=black Family=Arial Size=12 Style=Italic Weight=Bold );&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="desireatem_0-1675092065648.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79928i143E366EFB8F20FA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="desireatem_0-1675092065648.png" alt="desireatem_0-1675092065648.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2023 15:32:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-graphs/m-p/856266#M338337</guid>
      <dc:creator>desireatem</dc:creator>
      <dc:date>2023-01-30T15:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: SAS graphs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-graphs/m-p/856270#M338338</link>
      <description>&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Graphics-Programming/Axis-attributes-in-sgplot/m-p/193760#M7153" target="_blank"&gt;https://communities.sas.com/t5/Graphics-Programming/Axis-attributes-in-sgplot/m-p/193760#M7153&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2023 15:54:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-graphs/m-p/856270#M338338</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-01-30T15:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAS graphs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-graphs/m-p/856506#M338422</link>
      <description>&lt;P&gt;This shows me how to color the axes but not to make them denser. I try the code on the link without sucess&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 17:49:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-graphs/m-p/856506#M338422</guid>
      <dc:creator>desireatem</dc:creator>
      <dc:date>2023-01-31T17:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: SAS graphs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-graphs/m-p/856512#M338424</link>
      <description>&lt;P&gt;I disagree, there is specific code to make the line thickness 8px&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 18:16:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-graphs/m-p/856512#M338424</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-01-31T18:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: SAS graphs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-graphs/m-p/856514#M338425</link>
      <description>&lt;PRE&gt;proc template;
define style styles.axis;
parent=styles.htmlblue;
class GraphAxisLines /
contrastcolor=red
&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;linethickness=4;&lt;/STRONG&gt;&lt;/FONT&gt;
end;
run;

ods html5 file = '/home/fkhurshed/Demo1/demo.html' style=axis;

proc sgplot data=sashelp.class;
scatter x=weight y=height;
run;

ods html5 close;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Reeza_0-1675188977250.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79975iAF37E51350F106B1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Reeza_0-1675188977250.png" alt="Reeza_0-1675188977250.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 18:16:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-graphs/m-p/856514#M338425</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-01-31T18:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: SAS graphs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-graphs/m-p/856516#M338426</link>
      <description>&lt;P&gt;It didn't work:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc template;&lt;BR /&gt;define style styles.axis;&lt;BR /&gt;parent=styles.htmlblue;&lt;BR /&gt;class GraphAxisLines /&lt;BR /&gt;contrastcolor=red&lt;BR /&gt;linethickness=4;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;PROC SGPLOT DATA=data31;&lt;/P&gt;
&lt;P&gt;VLINE Time /RESPONSE=data1 STAT=Mean group=Biomarker&lt;/P&gt;
&lt;P&gt;MARKERS LINEATTRS = (THICKNESS = 3 color=green) ;&lt;BR /&gt;YAXIS label=' Calculated Concentration (pg/mL)' valuesattrs=(Color=black Family=Arial Size=12 Style=Italic Weight=Bold );&lt;BR /&gt;*xaxis valuesattrs=(Color=black Family=Arial Size=12 Style=Italic Weight=Bold );&lt;BR /&gt;xaxis label='Time in Hours' values=(0 to 72 by 12) valuesattrs=(Color=black Family=Arial Size=12 Style=Italic Weight=Bold );&lt;BR /&gt;RUN;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 18:26:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-graphs/m-p/856516#M338426</guid>
      <dc:creator>desireatem</dc:creator>
      <dc:date>2023-01-31T18:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAS graphs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-graphs/m-p/856517#M338427</link>
      <description>You missed a line of code from the example.</description>
      <pubDate>Tue, 31 Jan 2023 18:28:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-graphs/m-p/856517#M338427</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-01-31T18:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: SAS graphs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-graphs/m-p/856518#M338428</link>
      <description>&lt;P&gt;I&amp;nbsp; do not understand !&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 18:39:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-graphs/m-p/856518#M338428</guid>
      <dc:creator>desireatem</dc:creator>
      <dc:date>2023-01-31T18:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: SAS graphs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-graphs/m-p/856530#M338430</link>
      <description>There's a line of code in the example that isn't in your code as posted. Actually two.  It won't work without that.</description>
      <pubDate>Tue, 31 Jan 2023 19:58:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-graphs/m-p/856530#M338430</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-01-31T19:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: SAS graphs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-graphs/m-p/856620#M338466</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%sganno
data sganno;
%SGLINE(X1=0, Y1=0, X2=0,Y2=100, DRAWSPACE="WALLPERCENT" ,LINECOLOR="black", LINEPATTERN="SOLID", LINETHICKNESS=4)
%SGLINE(X1=0, Y1=0, X2=100,Y2=0, DRAWSPACE="WALLPERCENT" ,LINECOLOR="black", LINEPATTERN="SOLID", LINETHICKNESS=4)
run;
proc sgplot data=sashelp.class sganno=sganno;
scatter x=weight y=height;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1675251651290.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79989iB920BD945A07D45D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1675251651290.png" alt="Ksharp_0-1675251651290.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 11:41:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-graphs/m-p/856620#M338466</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-02-01T11:41:00Z</dc:date>
    </item>
  </channel>
</rss>

