<?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 two or three curves on the same graph by using Wood's model of lactation curve in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Plotting-two-or-three-curves-on-the-same-graph-by-using-Wood-s/m-p/416752#M14315</link>
    <description>&lt;P&gt;It may be time to use the newer SG graphics procedures. SGPLOT makes it fairly easy to create multiple plots as you request as long as the x axis use the same variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc sgplot data=fit;
title1' Lactation curves of milk fat and milk protein % ';
   series y=pred x=time;
   series y=TEST_DAY_PROT_PERCENT x=time;
   series y=Fat_PERCENT x=time;
run;&lt;/PRE&gt;
&lt;P&gt;Lots of appearance options related to markers and colors to control&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use SCATTER instead of SERIES if you want points instead of connected points.&lt;/P&gt;</description>
    <pubDate>Tue, 28 Nov 2017 16:30:38 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-11-28T16:30:38Z</dc:date>
    <item>
      <title>Plotting two or three curves on the same graph by using Wood's model of lactation curve</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Plotting-two-or-three-curves-on-the-same-graph-by-using-Wood-s/m-p/416721#M14314</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc nlin data = new method = marquardt;
  parms A = 15 B = -0.19 C = 0.0012 ;
      by pr  ;
  model TEST_DAY_PROT_PERCENT = 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;

proc gplot data=fit;
title1' Lactation curves of milk fat and milk protein % ';
	plot pred*time TEST_DAY_PROT_PERCENT*time/overlay;
run;quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hi guys,,,&lt;/P&gt;&lt;P&gt;I just wanted to know how to plot two curves from the same dataset on the same graph.&amp;nbsp;&lt;/P&gt;&lt;P&gt;this code has to plot only one curve for prot_percent, I wanna to plot fat_percent on the same graph, and all the data on the same dataset. (may dataset name is fit).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best regards&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ibrahim&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 15:21:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Plotting-two-or-three-curves-on-the-same-graph-by-using-Wood-s/m-p/416721#M14314</guid>
      <dc:creator>Barkamih</dc:creator>
      <dc:date>2017-11-28T15:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting two or three curves on the same graph by using Wood's model of lactation curve</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Plotting-two-or-three-curves-on-the-same-graph-by-using-Wood-s/m-p/416752#M14315</link>
      <description>&lt;P&gt;It may be time to use the newer SG graphics procedures. SGPLOT makes it fairly easy to create multiple plots as you request as long as the x axis use the same variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc sgplot data=fit;
title1' Lactation curves of milk fat and milk protein % ';
   series y=pred x=time;
   series y=TEST_DAY_PROT_PERCENT x=time;
   series y=Fat_PERCENT x=time;
run;&lt;/PRE&gt;
&lt;P&gt;Lots of appearance options related to markers and colors to control&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use SCATTER instead of SERIES if you want points instead of connected points.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 16:30:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Plotting-two-or-three-curves-on-the-same-graph-by-using-Wood-s/m-p/416752#M14315</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-11-28T16:30:38Z</dc:date>
    </item>
  </channel>
</rss>

