<?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: does it work now in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SGPLOT-and-X-axis-markers/m-p/628196#M77534</link>
    <description>&lt;P&gt;Please mark one of &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/292097"&gt;@ed_sas_member&lt;/a&gt; 's responses as the solution.&lt;/P&gt;</description>
    <pubDate>Fri, 28 Feb 2020 12:51:51 GMT</pubDate>
    <dc:creator>mkeintz</dc:creator>
    <dc:date>2020-02-28T12:51:51Z</dc:date>
    <item>
      <title>PROC SGPLOT and X axis markers</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SGPLOT-and-X-axis-markers/m-p/628141#M77525</link>
      <description>&lt;PRE&gt;data strength;
input id program$ s1 s2 s3 s4 s5 s6 s7;
datalines;
1 co 81 84 83 83 85 85 85
2 co 77 78 79 79 81 82 81
3 co 84 85 87 89 88 85 86
4 co 74 75 78 78 79 78 78
5 co 76 77 77 77 77 76 76 
6 co 84 84 86 85 86 86 86
7 co 79 80 79 80 80 82 82
8 co 78 78 77 76 75 75 76 
9 co 78 80 77 77 75 75 75
10 co 84 85 85 85 85 83 82
11 co 83 83 85 85 86 87 87
12 RI 79 82 82 83 84 84 82
13 RI 88 89 91 90 93 93 95
14 RI 83 83 84 83 84 86 86
15 RI 81 81 82 82 82 83 85
16 RI 87 88 90 89 89 91 93
17 RI 80 82 83 85 86 88 88
18 RI 82 83 84 84 83 85 87
19 RI 84 85 85 85 86 88 90
20 RI 80 80 82 83 83 84 85
21 RI 85 87 88 88 90 90 91
22 RI 87 88 88 87 87 86 86
;
proc print data=strength;
run;
proc sort data=strength;
by program;
run;
proc means data=strength mean std var;
var s1 s2 s3 s4 s5 s6 s7;
by program;
run;

data means;
input meancont meanri time;
datalines;
79.8181818 3.5726232 12.7636364   
80.8181818 3.5445220 12.5636364   
81.1818182 4.0204025 16.1636364   
81.2727273 4.3148791 18.6181818   
81.5454545 4.6981621 22.0727273   
81.2727273 4.5186482 20.4181818   
81.2727273 4.4517617 19.8181818   
;
proc sgplot data=means;
series x=time y=meanri/markers;
series x=time y=meancont/markers;
xaxis label='Time(in days)' values=(1 to 14 by 2);
yaxis label='Mean Strength';
title 'mean strength vs time';
run;
title;

&lt;/PRE&gt;</description>
      <pubDate>Fri, 28 Feb 2020 13:12:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SGPLOT-and-X-axis-markers/m-p/628141#M77525</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2020-02-28T13:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: why it does not work</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SGPLOT-and-X-axis-markers/m-p/628142#M77526</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/268447"&gt;@tianerhu&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your code, the x axis (representing time) displays values from&amp;nbsp;1 to 14 by 2:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;xaxis label='Time(in days)' values=(1 to 14 by 2);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;However, times values seem to go from 12 to 22:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data means;
input meancont meanri time;
datalines;
79.8181818 3.5726232 12.7636364   
80.8181818 3.5445220 12.5636364   
81.1818182 4.0204025 16.1636364   
81.2727273 4.3148791 18.6181818   
81.5454545 4.6981621 22.0727273   
81.2727273 4.5186482 20.4181818   
81.2727273 4.4517617 19.8181818  &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;-&amp;gt; you need to adapt the axis statement.&amp;nbsp;E.g.&lt;/P&gt;
&lt;P&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;xaxis label='Time(in days)' values=(10 to 24 by 2);&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does that answer your question?&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 08:20:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SGPLOT-and-X-axis-markers/m-p/628142#M77526</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-02-28T08:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: why it does not work</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SGPLOT-and-X-axis-markers/m-p/628144#M77527</link>
      <description>&lt;P&gt;thank you for your help , i love here&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 08:30:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SGPLOT-and-X-axis-markers/m-p/628144#M77527</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2020-02-28T08:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: why it does not work</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SGPLOT-and-X-axis-markers/m-p/628145#M77528</link>
      <description>&lt;P&gt;it works now , thank you .&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 08:33:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SGPLOT-and-X-axis-markers/m-p/628145#M77528</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2020-02-28T08:33:57Z</dc:date>
    </item>
    <item>
      <title>does it work now</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SGPLOT-and-X-axis-markers/m-p/628149#M77530</link>
      <description>&lt;PRE&gt;data strength;
input id program$ s1 s2 s3 s4 s5 s6 s7;
datalines;
1 co 81 84 83 83 85 85 85
2 co 77 78 79 79 81 82 81
3 co 84 85 87 89 88 85 86
4 co 74 75 78 78 79 78 78
5 co 76 77 77 77 77 76 76 
6 co 84 84 86 85 86 86 86
7 co 79 80 79 80 80 82 82
8 co 78 78 77 76 75 75 76 
9 co 78 80 77 77 75 75 75
10 co 84 85 85 85 85 83 82
11 co 83 83 85 85 86 87 87
12 RI 79 82 82 83 84 84 82
13 RI 88 89 91 90 93 93 95
14 RI 83 83 84 83 84 86 86
15 RI 81 81 82 82 82 83 85
16 RI 87 88 90 89 89 91 93
17 RI 80 82 83 85 86 88 88
18 RI 82 83 84 84 83 85 87
19 RI 84 85 85 85 86 88 90
20 RI 80 80 82 83 83 84 85
21 RI 85 87 88 88 90 90 91
22 RI 87 88 88 87 87 86 86
;
proc print data=strength;
run;
proc sort data=strength;
by program;
run;
proc means data=strength mean std var;
var s1 s2 s3 s4 s5 s6 s7;
by program;
run;

data means;
input meancont meanri time;
datalines;
79.8181818 83.2727273   1
80.8181818 84.3636364   3
81.1818182 85.3636364   5
81.2727273 85.3636364   7
81.5454545 86.0909091   9
81.2727273 87.0909091   11
81.2727273 88.0000000   13
;
proc sgplot data=means;
series x=time y=meanri/markers;
series x=time y=meancont/markers;
xaxis label='Time(in days)' values=(1to 14 by 2);
yaxis label='Mean Strength';
title 'mean strength vs time';
run;
title;

&lt;/PRE&gt;</description>
      <pubDate>Fri, 28 Feb 2020 08:42:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SGPLOT-and-X-axis-markers/m-p/628149#M77530</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2020-02-28T08:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: does it work now</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SGPLOT-and-X-axis-markers/m-p/628150#M77531</link>
      <description>&lt;P&gt;That seems great now!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 08:47:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SGPLOT-and-X-axis-markers/m-p/628150#M77531</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-02-28T08:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: does it work now</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SGPLOT-and-X-axis-markers/m-p/628151#M77532</link>
      <description>&lt;P&gt;thank you so much.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 08:48:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SGPLOT-and-X-axis-markers/m-p/628151#M77532</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2020-02-28T08:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: does it work now</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SGPLOT-and-X-axis-markers/m-p/628196#M77534</link>
      <description>&lt;P&gt;Please mark one of &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/292097"&gt;@ed_sas_member&lt;/a&gt; 's responses as the solution.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 12:51:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SGPLOT-and-X-axis-markers/m-p/628196#M77534</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2020-02-28T12:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: does it work now</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SGPLOT-and-X-axis-markers/m-p/628602#M77563</link>
      <description>&lt;P&gt;thank you&lt;/P&gt;</description>
      <pubDate>Sun, 01 Mar 2020 23:06:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SGPLOT-and-X-axis-markers/m-p/628602#M77563</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2020-03-01T23:06:42Z</dc:date>
    </item>
  </channel>
</rss>

