<?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: Identifying lines in a plot created with SGPanel in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Identifying-lines-in-a-plot-created-with-SGPanel/m-p/965383#M25468</link>
    <description>&lt;P&gt;Here are some thoughts:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Remove the GROUP option from your SERIES plots. You are already subsetting the Replicate in the PANELBY statement, and you are setting the plot attributes on each statement. Removing the GROUP will clean up some possible behavior issues.&lt;/LI&gt;
&lt;LI&gt;Now that you've removed GROUP, do what&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/19879"&gt;@Quentin&lt;/a&gt;&amp;nbsp;said and remove the NOAUTOLEGEND option from the SGPANEL statement. The legend will put all four SERIES plots in the legend (the GROUP option would have put only the first GROUP series plot in the legend).&lt;/LI&gt;
&lt;LI&gt;Use the LEGENDLABEL option on each SERIES plot to customize the legend label for each SERIES plot.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
    <pubDate>Tue, 29 Apr 2025 20:01:30 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2025-04-29T20:01:30Z</dc:date>
    <item>
      <title>Identifying lines in a plot created with SGPanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Identifying-lines-in-a-plot-created-with-SGPanel/m-p/965377#M25466</link>
      <description>&lt;P&gt;I have used NLIN to model gas production curves using three different functions (Gompertz, Logistic, and LogLogistic).&amp;nbsp; I am displaying the Raw Observations and the predicted curves on a graph.&amp;nbsp; I am able to control colors of the lines but am not sure how to label them on the graph.&amp;nbsp; The code I am using is shown below.&amp;nbsp; It generates graphs that each contain 4 lines, as specified, but there is no legend.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help you could provide would be appreciated.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sort data=plot;by Treatment Replicate time;&lt;BR /&gt;ods graphics/height=6 in width=10 in noborder outputfmt=png ANTIALIASMAX=5600;&lt;BR /&gt;Title 'Gas Production';&lt;BR /&gt;proc sgpanel data=plot noautolegend;by Replicate;&lt;BR /&gt;label GasProd='Data' y_log_logistic='Log-logistic curve' y_logistic='Logistic curve' y_Gompertz='Gompertz curve'&lt;BR /&gt;ms_log='Log-logistic MS' ms='Logistic MS' ms_Gomp='Gompertz MS';&lt;BR /&gt;panelby Treatment/headerbackcolor=white novarname rows=1 columns=1;&lt;BR /&gt;series x=time y=GasProd/lineattrs=(color=gray pattern=1) group=Replicate;&lt;BR /&gt;series x=time y=y_log_logistic/lineattrs=(color=blue pattern=2) group=Replicate;&lt;BR /&gt;series x=time y=y_logistic/lineattrs=(color=red pattern=2) group=Replicate;&lt;BR /&gt;series x=time y=y_Gompertz/lineattrs=(color=green pattern=2) group=Replicate;&lt;BR /&gt;inset ms ms_log ms_Gomp/position=bottomright ;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2025 19:19:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Identifying-lines-in-a-plot-created-with-SGPanel/m-p/965377#M25466</guid>
      <dc:creator>jsd1</dc:creator>
      <dc:date>2025-04-29T19:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying lines in a plot created with SGPanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Identifying-lines-in-a-plot-created-with-SGPanel/m-p/965381#M25467</link>
      <description>&lt;P&gt;If you remove the NOAUTOLEGEND option, does it give you something reasonable?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgpanel data=plot noautolegend;by Replicate;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Apr 2025 19:46:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Identifying-lines-in-a-plot-created-with-SGPanel/m-p/965381#M25467</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2025-04-29T19:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying lines in a plot created with SGPanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Identifying-lines-in-a-plot-created-with-SGPanel/m-p/965383#M25468</link>
      <description>&lt;P&gt;Here are some thoughts:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Remove the GROUP option from your SERIES plots. You are already subsetting the Replicate in the PANELBY statement, and you are setting the plot attributes on each statement. Removing the GROUP will clean up some possible behavior issues.&lt;/LI&gt;
&lt;LI&gt;Now that you've removed GROUP, do what&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/19879"&gt;@Quentin&lt;/a&gt;&amp;nbsp;said and remove the NOAUTOLEGEND option from the SGPANEL statement. The legend will put all four SERIES plots in the legend (the GROUP option would have put only the first GROUP series plot in the legend).&lt;/LI&gt;
&lt;LI&gt;Use the LEGENDLABEL option on each SERIES plot to customize the legend label for each SERIES plot.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2025 20:01:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Identifying-lines-in-a-plot-created-with-SGPanel/m-p/965383#M25468</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2025-04-29T20:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying lines in a plot created with SGPanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Identifying-lines-in-a-plot-created-with-SGPanel/m-p/965395#M25469</link>
      <description>Awesome--- that took care of it!&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 29 Apr 2025 21:50:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Identifying-lines-in-a-plot-created-with-SGPanel/m-p/965395#M25469</guid>
      <dc:creator>jsd1</dc:creator>
      <dc:date>2025-04-29T21:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying lines in a plot created with SGPanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Identifying-lines-in-a-plot-created-with-SGPanel/m-p/965404#M25474</link>
      <description>&lt;P&gt;You also could try CURVELABEL= option to make your graph look pretty.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgpanel data=sashelp.stocks NOAUTOLEGEND ;
panelby stock/onepanel columns=1;
series x=date y=close/curvelabel='close' curvelabelpos=max;
series x=date y=open/curvelabel='open' curvelabelpos=max;
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-1745982591615.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106613i83FD3F1C5318B25E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1745982591615.png" alt="Ksharp_0-1745982591615.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Apr 2025 03:09:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Identifying-lines-in-a-plot-created-with-SGPanel/m-p/965404#M25474</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-04-30T03:09:58Z</dc:date>
    </item>
  </channel>
</rss>

