<?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: PLOTTING MULTIPLE GRAPHS in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PLOTTING-MULTIPLE-GRAPHS/m-p/444175#M69366</link>
    <description>&lt;P&gt;You haven't provided an image of what you want, but try this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=fit;
series y=pred x=ttime / group=pr;
series y=TEST_DAY_milk_kg x=time / group=pr;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 09 Mar 2018 16:25:52 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2018-03-09T16:25:52Z</dc:date>
    <item>
      <title>PLOTTING MULTIPLE GRAPHS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PLOTTING-MULTIPLE-GRAPHS/m-p/444170#M69365</link>
      <description>&lt;P&gt;Hi guys&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to plot four lactation curves on the same graph by pr, (PR) is a categorical number. which&amp;nbsp;is&amp;nbsp;represented observations&amp;nbsp;that came&amp;nbsp;from&amp;nbsp;year&amp;nbsp;one, two, three and four.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in my dataset, I have PR 1, 2,&amp;nbsp; 3, and 4.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this code that I have plottered&amp;nbsp;all the PRS in one curve,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I change this code to plot all the&amp;nbsp;lactations&amp;nbsp;in one place?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;  proc nlin data = ALLfd method = marquardt;
parms A = 15 B = -0.19 C = 0.0012 ;
by pr  ;
AXIS1 ORDER = (5 TO 45 BY 5 );
model TEST_DAY_milk_kg = A * Time **b * exp(-C*Time);
output out = Fit predicted = pred ;
symbol1 interpol= join value = star color= black;
symbol2 interpol = none value = none color = red;
run;
QUIT;
proc sort data=fit; 
by time;
RUN;
proc gplot data=fit;
plot pred*time TEST_DAY_milk_kg*time/overlay VAXIS = AXIS1;
run;quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ibrahim&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2018 16:08:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PLOTTING-MULTIPLE-GRAPHS/m-p/444170#M69365</guid>
      <dc:creator>Barkamih</dc:creator>
      <dc:date>2018-03-09T16:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: PLOTTING MULTIPLE GRAPHS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PLOTTING-MULTIPLE-GRAPHS/m-p/444175#M69366</link>
      <description>&lt;P&gt;You haven't provided an image of what you want, but try this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=fit;
series y=pred x=ttime / group=pr;
series y=TEST_DAY_milk_kg x=time / group=pr;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Mar 2018 16:25:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PLOTTING-MULTIPLE-GRAPHS/m-p/444175#M69366</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-03-09T16:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: PLOTTING MULTIPLE GRAPHS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PLOTTING-MULTIPLE-GRAPHS/m-p/444362#M69373</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;										
    proc nlin data = fdfdfd method = marquardt;
  parms A = 15 B = -0.19 C = 0.0012 ;
      by pr  ;
	  AXIS1 ORDER = (0 TO 1 BY 0.1 );
  model TEST_DAY_fat_kg = A * Time **b * exp(-C*Time);
  output out = Fit predicted = pred ;
  symbol1 interpol= none value = star color= black;
symbol2 interpol = none value = none color = red;
 run;
QUIT;
proc sort data=fit; by time;
run;

proc sgplot data=fit;
series y=pred x=time / group=pr;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hi Pick_SAS&amp;nbsp;&lt;/P&gt;&lt;P&gt;this code has done everything that I&amp;nbsp; was looking for except this code can not appear my request, it is only present the default&amp;nbsp;programme&amp;nbsp;numbers.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What do you think the issue is?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;AXIS1 ORDER = (0 TO 1 BY 0.1 );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Mar 2018 08:16:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PLOTTING-MULTIPLE-GRAPHS/m-p/444362#M69373</guid>
      <dc:creator>Barkamih</dc:creator>
      <dc:date>2018-03-10T08:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: PLOTTING MULTIPLE GRAPHS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PLOTTING-MULTIPLE-GRAPHS/m-p/444376#M69374</link>
      <description>&lt;P&gt;To change the ticks on the X axis, use the XAXIS statement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=fit;
series y=pred x=time / group=pr;
xaxis values=(0 to 1 by 0.1);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Here is a link to &lt;A href="http://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.2&amp;amp;docsetId=grstatproc&amp;amp;docsetTarget=n0yjdd910dh59zn1toodgupaj4v9.htm&amp;amp;locale=en" target="_self"&gt;the documentation of PROC SGPLOT.&lt;/A&gt;&amp;nbsp;You can also search for questions online, such as&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;change ticks "proc sgplot" site:sas.com&lt;/P&gt;</description>
      <pubDate>Sat, 10 Mar 2018 11:10:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PLOTTING-MULTIPLE-GRAPHS/m-p/444376#M69374</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-03-10T11:10:30Z</dc:date>
    </item>
  </channel>
</rss>

